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

EntityEncode

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

The EntityEncode function encodes any symbols found in a data stream into entities.

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