Previous Page: CPXfopenFirst PageNext Page: CPXfree

CPXfputs


Description

The routine CPXfputs() can be used to write output to a file opened with CPXfopen(). The purpose of this routine is to allow user-defined output in a file to be interspersed with the output created by using the routines CPXaddfpdest() or CPXsetlogfile(). The semantics of CPXfputs() are the same as the standard C library function fputs().

Return Value

This routine returns a non-negative value if successful. Otherwise the system constant EOF is returned.

Synopsis

int CPXfputs (char *s,
              CPXFILEptr stream);

Arguments


char *s
A pointer to a string to be output to the file.

CPXFILEptr stream
A pointer to a file opened by the routine CPXfopen().

Example

CPXfputs ("Solved first problem.\n", fp);

Previous Page: CPXfopenFirst PageNext Page: CPXfree