Amiga Developer Site by i n n o i d e a | MorphOS | Amiga Developers | Compilers | Documents | Dev-HardFile v1.11 for UAE / real Amiga - readme - shot) | Unique/All Visitors: 77257/570053
Search manual for function in the   
GeekGadgets/fread
NAME 

fread, fwrite - binary stream input/output

SYNOPSIS 

#include <stdio.h> 


size_t fread(void *ptr, size_t size, size_t nmemb,
FILE *stream);


size_t fwrite(const void *ptr, size_t size, size_t nmemb,
FILE *stream);

DESCRIPTION 

The function
fread 
reads
nmemb 
elements of data, each
size 
bytes long, from the stream pointed to by
stream,
storing them at the location given by
ptr.


The function
fwrite 
writes
nmemb 
elements of data, each
size 
bytes long, to the stream pointed to by
stream,
obtaining them from the location given by
ptr.


For non-locking counterparts, see
unlocked_stdio(3).

RETURN VALUE 

fread 
and
fwrite 
return the number of items successfully read or written (i.e., not the
number of characters).  If an error occurs, or the end-of-file is
reached, the return value is a short item count (or zero).


fread 
does not distinguish between end-of-file and error, and callers must use
feof(3)
and
ferror(3)
to determine which occurred.

CONFORMING TO 

The functions
fread 
and
fwrite 
conform to ANSI X3.159-1989 (``ANSI C).

SEE ALSO 

read(2),
write(2),
feof(3),
ferror(3),
unlocked_stdio(3)



Logo by Emeric/SH
GeekGadgets/fread

Example #1 Download / View

Functions with "f":
fabs
fabsf
fabsl
fchdir
fchmod
fchown
fclose
fcloseall
fcntl
fcntl.h
fcvt
fdatasync
fdopen
feclearexcept
fegetenv
fegetexceptflag
fegetround
feholdexcept
fenv
feof
feof_unlocked
feraiseexcept
ferror
ferror_unlocked
fesetenv
fesetexceptflag
fesetround
fetestexcept
feupdateenv
fflush
fflush_unlocked
ffs
fgetc
fgetc_unlocked
fgetgrent
fgetpos
fgetpwent
fgets
fgets_unlocked
fgetwc
fgetwc_unlocked
fgetws
fgetws_unlocked
file.h
fileno
fileno_unlocked
filio.h
finite
float
float.h
flock
flockfile
floor
floorf
floorl
fmod
fnmatch
fnmatch.h
fopen
for
fork
forkpty
fpathconf
fprintf
fpurge
fputc
fputc_unlocked
fputs
fputs_unlocked
fputwc
fputwc_unlocked
fputws
fputws_unlocked
frame.h
fread
fread_unlocked
free
freeaddrinfo
freehostent
freopen
frexp
fscanf
fseek
fseeko
fsetpos
fstat
fstatfs
fsync
ftell
ftello
ftime
ftok
ftp.h
ftruncate
ftrylockfile
fts
fts.h
fts_children
fts_close
fts_open
fts_read
fts_set
ftw
funlockfile
fwide
fwprintf
fwrite
fwrite_unlocked

Last 15 uploaded Examples:

20071229151342 AmiSSL/X509_STORE_CTX_cleanup
20070708011052 GeekGadgets/getlogin
20060705053954 AmigaOS/OpenWorkbenchObjectA
20050801035639 SDL/SDL_Surface
20050727092732 BlitzBasic/LSL
20050718102843 SDL/SDL_WarpMouse
20050718072844 GeekGadgets/fread
20050714051528 SDL/SDL_ActiveEvent
20050714051514 SDL/SDL_ActiveEvent
20050701171401 GeekGadgets/errno
20050701171347 GeekGadgets/errno
20050627101951 SDL/SDL_FreeSurface
20050623152729 GeekGadgets/fork
20050619153102 GeekGadgets/tcdrain
20050615182849 AmigaOS/OpenScreen

Last 25 posts:

20050613235812 SDL/SDL_SetGammaRamp
20050526065000 AmiTCP/unistd.h
20050413041558 AmiSSL/X509_STORE_set_default_paths
20050409155750 AmigaDOS/Status
20050129230614 MUI/Calendar.mcc
20050128185620 GeekGadgets/hstrerror
20041126154558 BlitzBasic/LoadBank
20041123170704 GeekGadgets/gcvt
20041105222909 AmigaOS/CheckSignal
20040712190839 SDL/SDL_SetVideoMode
20040627090529 SDL/SDL_Init
20040519133228 GeekGadgets/fork
20040407124555 AmigaOS/AllocMem
20040403101120 GeekGadgets/inet_ntoa
20040327172814 GeekGadgets/random
20040327172714 GeekGadgets/srandom
20040313211937 BlitzBasic/ANALYZEDISK
20040303135237 GeekGadgets/mktemp
20040301131355 GeekGadgets/realpath
20040301123615 GeekGadgets/gcvt
20040301114000 GeekGadgets/htonl
20040301100209 GeekGadgets/realpath
20040229095437 GeekGadgets/time
20040211132618 GeekGadgets/getpid
20040209102818 AmigaOS/OpenWindow




Amiga.sf
AMIGIFT

Locations of visitors to this page

Page took 0.717733 seconds to load.