Home| base |src.lib|graphic|ps| PostScriptSetText Index

PostScriptSetText

Syntax
int PostScriptSetText(struct PostScript *ptr, int (*text)(char *,int,void *),void *data);
Header
base/rps.h
Library
rps
Description

The PostScriptSetText function sets the text stream handler in the PostScript control structure.

The argument ptr is a pointer to the PostScript control structure.

The argument text is a pointer to a function of the form:

int (*text) (char *buffer,int size,void *dptr);

This function is called each time PostScript commands are sent to the text stream.

The argument buffer is a pointer to a buffer containing the text of the command and the argument size indicates the size of the buffer.

The data argument of the PostScriptSetText function is passed directly as the dptr argument and allows extra parameters to be passed to the function.

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