Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
FREAD.3
Upload User: jnzhq888
Upload Date: 2007-01-18
Package Size: 51694k
Code Size: 1k
Category:
OS Develop
Development Platform:
WINDOWS
- ." Copyright (c) 1980 Regents of the University of California.
- ." All rights reserved. The Berkeley software License Agreement
- ." specifies the terms and conditions for redistribution.
- ."
- ." @(#)fread.3s 6.1 (Berkeley) 5/15/85
- ."
- .TH FREAD 3 "May 15, 1985"
- .UC 4
- .SH NAME
- fread, fwrite - buffered binary input/output
- .SH SYNOPSIS
- .nf
- .ft B
- #include <sys/types.h>
- #include <stdio.h>
- size_t fread(void *fIptrfP, size_t fIitemsizefP, size_t fInitemsfP, FILE *fIstreamfP)
- size_t fwrite(void *fIptrfP, size_t fIitemsizefP, size_t fInitemsfP, FILE *fIstreamfP)
- .SH DESCRIPTION
- .B Fread
- reads, into a block beginning at
- .IR ptr ,
- .I nitems
- of data of the type of
- .I *ptr
- from the named input
- .IR stream .
- It returns the number of items actually read.
- .PP
- If
- .I stream
- is
- .B stdin
- and the standard output is line buffered, then any partial output line
- will be flushed before any call to
- .BR read (2)
- to satisfy the
- .BR fread .
- .PP
- .B Fwrite
- appends at most
- .I nitems
- of data of the type of
- .I *ptr
- beginning at
- .I ptr
- to the named output
- .IR stream .
- It returns the number of items actually written.
- .SH "SEE ALSO"
- .BR read (2),
- .BR write (2),
- .BR fopen (3),
- .BR getc (3),
- .BR putc (3),
- .BR gets (3),
- .BR puts (3),
- .BR printf (3),
- .BR scanf (3).
- .SH DIAGNOSTICS
- .B Fread
- and
- .B fwrite
- return
- 0
- upon end of file or error.