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

xt_ff_write() - Write a fixed number of bytes to a fast file stream

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

size_t  xt_ff_write(xt_ff_t *stream, void * ptr,
size_t size, size_t nmemb)

stream  Pointer to an xt_ff_t structure
ptr     Memory location from which data are written
size    Size of one object being read
nmemb   Number of objects to read

xt_ff_write(3) writes a fixed number of bytes (size * nmemb) to stream from 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 written

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

xt_ff_read(2), xt_ff_open(3), write(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.