GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
ffpclose(3) FreeBSD Library Functions Manual ffpclose(3)

#include <xtend/fast-file.h>
-lxtend

int     ffpclose(ffile_t *stream)

stream  ffile_t stream opened by ffpopen(3)

ffpclose(3) closes a stream opened by ffpopen(3), and waits for the child process to complete and returns its exit status.

The ffile_t system is simpler than and several times as fast as FILE on typical systems. It is intended for processing large files character-by-character, where low-level block I/O is not convenient, but FILE I/O causes a bottleneck.

Exit status of the child process spawned by ffpopen(3), or -1 on error

ffile_t *instream;
if ( (instream = ffpopen("xzcat file.xz", O_RDONLY)) == NULL )
{
    fprintf(stderr, "Failed to read xzcat file.xz.n");
    exit(EX_NOINPUT);
}
ffpclose(instream);

ffopen(3), ffpclose(3), popen(3), open(3)


Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.