C Standard Library: Direct Input and Output Functions
2013-03-20 22:50
309 查看
1.5 Direct Input and Output Functions
size_t fread(void *ptr, size_t size, size_t nobj, FILE *stream)
fread reads from stream into the array ptr at most nobj objects of size size. fread
returns the number of objects read; this may be less than the number requested. feof
and ferror must be used to determine status.
size_t fwrite(const void *ptr, size_t size, size_t nobj, FILE *stream)
fwrite writes, from the array ptr, nobj objects of size size on stream. It returns the
number of objects written, which is less than nobj on error.
size_t fread(void *ptr, size_t size, size_t nobj, FILE *stream)
fread reads from stream into the array ptr at most nobj objects of size size. fread
returns the number of objects read; this may be less than the number requested. feof
and ferror must be used to determine status.
size_t fwrite(const void *ptr, size_t size, size_t nobj, FILE *stream)
fwrite writes, from the array ptr, nobj objects of size size on stream. It returns the
number of objects written, which is less than nobj on error.
相关文章推荐
- C Standard Library: Character Input and Output Functions
- C Standard Library: 1 Input and Output: <stdio.h>
- Redirecting standard input and output
- Swift Standard Library: Documented and undocumented built-in functions in the Swift standard libr...
- Swift Standard Library: Documented and undocumented built-in functions in the Swift standard libr...
- C Standard Library: 10 Date and Time Functions: <time.h>
- [quote] standard Input and Output Redirection
- Standard Input and Output Redirection
- Swift Standard Library: Documented and undocumented built-in functions in the Swift standard library – the complete list with all 74 functions
- Standard input, output, and error streams
- Swift Standard Library: Documented and undocumented built-in functions in the Swift standard library
- Using the High-Level Input and Output Functions
- v4l2文档之——input and output
- File Input and Output(1)
- #error This file requires compiler and library support for the upcoming ISO C++ standard, C++0x. Th
- How to check the 'OLE DB Destination' INPUT and OUTPUT
- 《modern operating system》 chapter 5 Input and output 笔记
- Redirecting Standard Input/Output using the Process Class
- 7. Input and Output
- 20060801-Spatial transformations: Controlling the input and output grids with imtransform