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

EntityEncodeBuffer

Syntax
struct XMLDBbuffer *EntityEncodeBuffer(struct Entitydata *ptr, struct XMLDBbuffer *src);
Header
base/entity.h
Library
rxmldb
Description

The EntityEncodeBuffer function encodes any symbols found in a data stream as entities and stores the processed data in a buffer.

The argument ptr points to the control structure. 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.

Returns
Returns a pointer to the encoded buffer on success. On error, a NULL pointer is returned.
Errors
On error a NULL pointer is returned.
Example
None