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

xt_ff_seeko() - Reposition file descriptor under a fast file stream

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

int     xt_ff_seeko(xt_ff_t *stream, off_t offset, int whence)

stream  Pointer to a xt_ff_t structure
offset  New position in bytes forward or backward from whence
(positive or negative)
whence  SEEK_SET (beginning of file), SEEK_CUR (current position),
or SEEK_END (end of file)

xt_ff_seeko(3) repositions the file descriptor underlying stream to any position within the file, using lseek(2). It is analogous to fseeko(3). The stream must refer to a regular file, as pipes are not generally seekable.

0 on success, -1 on failure (errno set)

// Reposition so that 10th byte in the file is the next one read
xt_ff_seeko(stream, 10, SEEK_SET);

fseek(3), lseek(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.