Programming Guide |
Closes an open file stream
int sm_fio_close(int file_stream);
file_stream
- A handle to the file to close, obtained by sm_fio_open.
sm_fio_close
closes the specified file and releases its handle for reuse. You should call this function after all read and write operations that require an open file stream—for example, after calling sm_fio_gets.This function is similar to the C function
fclose
, except thatsm_fio_close
takes an integer argument so that it can be called from JPL.