Home| base |src.lib|xml|xmldb| EntityDecode Index

EntityDecode

Syntax
int EntityDecode(char *buf,int sze,void *data);
Header
base/entity.h
Library
rxmldb
Description

The EntityDecode function decodes any entities found in a data stream.

The data to process is stored in the text pointer to by the argument buf, and the number of bytes in the buffer is given by the argument sze.

The argument data is assumed to be a pointer to a structure of type struct Entitydata. The function will automatically cast the argument as a pointer of this type.

The unusual syntax allows this function to be used as a text decoder or parser for other libraries.

Returns
Returns zero on success. On error, (-1) is returned.
Errors
On error (-1) is returned.
Example
None