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
ffstdin(3) FreeBSD Library Functions Manual ffstdin(3)

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

ffile_t *ffstdin()

None

ffstdin() is a simple wrapper function for connecting file descriptor 0 to an ffile_t object using ffdopen(3). This is useful for high-performance filter programs, where using the traditional FILE *stdin would cause a bottleneck.

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.

Pointer to an ffile_t object if successful, NULL otherwise

ffile_t *stream;
// "-" as a filename argument traditionally indicates stdin
if ( strcmp(argv[arg], "-") == 0 )
    stream = ffstdin();
else
    stream = ffopen(argv[arg], O_RDONLY);

ffopen(3), ffdopen(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.