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


Manual Reference Pages  -  LIBOWFAT_OPENREADCLOSE (3)

NAME

openreadclose - read a whole file into a stralloc

CONTENTS

Syntax
Description

SYNTAX

#include <openreadclose.h>

int openreadclose(const char *filename,
stralloc* sa,size_t bufsize);

DESCRIPTION

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.

SEE ALSO

open_read(3), readclose(3)
Search for    or go to Top of page |  Section 3 |  Main Index


OPENREADCLOSE (3) -->

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.