The filebuf_close function deallocates a file buffer and closes its associated file.
Use filebuf_open first to open a file buffer, and then filebuf_getc to access the information in the file. After you have finished using the file buffer, use filebuf_close to close it.
void filebuf_close(filebuf *buf);
void
filebuf *buf is the file buffer previously opened with filebuf_open.
filebuf_close(buf);
filebuf_open, filebuf_open_nostat, filebuf_buf2sd, filebuf_getc