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

openreadclose - read a whole file into a stralloc

#include <openreadclose.h>
ssize_t openreadclose(const char *filename,
stralloc* sa,size_t bufsize);

openreadclose opens the file filename for reading and reads the whole content into the stralloc sa. The file is read in chunks of bufsize bytes size. If everything worked fine, openreadclose returns 1. If the file did not exist, openreadclose returns 0. On every other error, openreadclose returns -1 and sets errno appropriately.

open_read(3), readclose(3)

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.