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

count_fopen
read a fixed number of bytes from a stream

PDEL Library (libpdel, -lpdel)

#include <sys/types.h>
#include <stdio.h>
#include <pdel/io/count_fp.h>

FILE *
count_fopen(FILE *fp, off_t count, int closeit);

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.

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

boundary_fopen(3), string_fp(3), libpdel(3)

N. Freed and N. Borenstein, Multipurpose Internet Mail Extensions (MIME) Part Two: Media Types, RFC 2046.

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

Archie Cobbs ⟨archie@freebsd.org⟩
April 22, 2002 FreeBSD 13.1-RELEASE

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.