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 syntax of CPXfputs() is 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 (const char *s_str,
                CPXFILEptr stream);

Arguments

const char *s_str

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: CPXfopen Return to Top Next Page: CPXfreeprob