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

xt_ff_read() - Read a fixed number of bytes from a fast file stream

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

size_t  xt_ff_read(xt_ff_t *stream, void * restrict ptr,
size_t size, size_t nmemb)

stream  Pointer to an xt_ff_t structure
ptr     Memory location where data read from stream will be stored
size    Size of one object being read
nmemb   Number of objects to read

xt_ff_read(3) reads a fixed number of bytes (size * nmemb) from stream, storing them at address ptr, which should point to an object (if nmemb == 1) or array of "nmemb" objects of size "size".

The number of objects (not bytes) successfully read

my_type_t   list[NUM_OBJECTS];
xt_ff_t     *stream;
stream = xt_ff_open("myfile", O_RDONLY);
xt_ff_read(stream, list, sizeof(my_type_t), NUM_OBJECTS);

xf_ff_write(3), xt_ff_open(3), read(2)


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.