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

fileread() - reads file into buffer

int fileread(f,buf,size)
FILE *f;
char *buf;
int size;

fileread() reads up to size bytes from the file into buf. The number actually read may be smaller if end-of-file is reached. The file pointer (implied) is left pointing to one past the last character read.

> 0
the number of bytes actually read.
= 0
file was at end-of-file.
< 0
error code.

It returns the number of bytes actually read or an error code.

The buffer must be at least size long. If reading from a "raw" device, size must be a multiple of 512.
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.