CPXfclose


Description

The routine CPXfclose() closes files that are used in conjunction with the routines CPXaddfpdest(), CPXdelfpdest(), and CPXsetlogfile(). It is used in the same way as the standard C library function fclose(). Files that are opened with the routine CPXfopen() must be closed with the routine CPXfclose().

Return Value

This routine returns a zero on success, and a nonzero if a failure occurs. The syntax is identical to the standard C library routine fclose().

Synopsis

  int CPXfclose (CPXFILEptr stream);

Arguments

CPXFILEptr stream

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

Example

  CPXfclose (fp);

See Also

Example lpex5.c in the user's manual.

Previous Page: CPXembwrite Return to Top Next Page: CPXfindiis