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  -  COUNT_FOPEN (3)

NAME

count_fopen - read a fixed number of bytes from a stream

CONTENTS

Library
Synopsis
Description
Return Values
See Also
History
Authors

LIBRARY

PDEL Library (libpdel, -lpdel)

SYNOPSIS


.In sys/types.h
.In stdio.h
.In pdel/io/count_fp.h FILE * count_fopen FILE *fp off_t count int closeit

DESCRIPTION

count_fopen creates a new read-only stream that reads up to, but no more than, count bytes from the underlying stream fp. After count bytes have been read, further attempts to read from the returned stream will return EOF.

fclose(3) should be used to close the returned stream. The closeit parameter determines whether the underlying stream fp is closed when the returned stream is closed.

RETURN VALUES

boundary_fopen returns NULL to indicate an error, with errno set appropriately.

SEE ALSO

boundary_fopen(3), string_fp(3), libpdel(3)
.Rs Multipurpose Internet Mail Extensions (MIME) Part Two: Media Types
.Re

HISTORY

The PDEL library was developed at Packet Design, LLC. http://www.packetdesign.com/

AUTHORS


.An Archie Cobbs Aq archie@freebsd.org
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 manServer 1.07.