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
FDUP(3) Schily´s LIBRARY FUNCTIONS FDUP(3)

fdup() - returns new file identical to the given file

FILE fdup(f)
FILE *f;

fdup() creates a new file stream which accesses the same file as f. The new file will have the same read/write/buffered attributes as the old file. fdup() can be used to simultaneously read from two different positions in a file.

Returns the duplicate file, if successful. Returns NULL, if it could not create the new stream.

This call should be used carefully on buffered files open for writing. Changes made on one stream might be superseded by changes made on the other.
15. Juli 1988 Joerg Schilling

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.