#include <ts/ts.h>
TSfclose
Closes the file to which filep points and frees the data structures and buffers associated with it.
If the file was opened for writing, any pending data is flushed.