|
NAMEcount_fopen —
read a fixed number of bytes from a stream
LIBRARYPDEL Library (libpdel, -lpdel)SYNOPSIS#include <sys/types.h>
#include <stdio.h>
#include <pdel/io/count_fp.h>
FILE *
DESCRIPTIONcount_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 VALUESboundary_fopen () returns NULL to
indicate an error, with errno set appropriately.
SEE ALSOboundary_fopen(3), string_fp(3), libpdel(3)N. Freed and N. Borenstein, Multipurpose Internet Mail Extensions (MIME) Part Two: Media Types, RFC 2046. HISTORYThe PDEL library was developed at Packet Design, LLC.http://www.packetdesign.com/
AUTHORSArchie Cobbs ⟨archie@freebsd.org⟩
Visit the GSP FreeBSD Man Page Interface. |