int tsmCloseStream ( FILE *stream )

Closes a stream opened with tsmOpenStream

Documentation

Closes a stream opened with tsmOpenStream.

This function should be used to close a stream that was previously opened by the tsmOpenStream function. This function will not perform any close operation if the stream is NULL. Note that some of the stream utility functions close the stream automatically upon completion so you do not need to call this function if you use one of tsmStreamToFile, tsmStreamToBuffer, or tsmStreamToStdout.

Returns:
currently only returns a value of 0, for compatibility with fclose.
Parameters:
stream - a valid stream as returned by tsmOpenStream
Author:
Martin Reddy
Version:
1 May 1998
See Also:
tsmOpenStream, tsmStreamToFile, tsmStreamToBuffer, tsmStreamToStdout


TSMAPI_RELEASE 2.1 - Release Date: 2001/01/10 19:01:12

Back to tsmApi Home Page