fw
来自「Algorithms for Image Processing and Comp」· 代码 · 共 56 行
TXT
56 行
@c ----------------------------------------------------------------------
@node _fwalk, stdio
@heading @code{_fwalk}
@subheading Syntax
@example
void _fwalk(void (*function)(FILE *file));
@end example
@subheading Description
For each open file in the system, the given @var{function} is called,
passing the file pointer as it's only argument
@subheading Return Value
None.
@subheading Example
@example
void pfile(FILE *x)
@{ printf("FILE at %x\n", x); @}
_fwalk(pfile);
@end example
@c ----------------------------------------------------------------------
@node fwrite, stdio
@heading @code{fwrite}
@subheading Syntax
@example
#include <stdio.h>
size_t fwrite(void *buffer, size_t size, size_t number, FILE *file);
@end example
@subheading Description
This function writes @var{size}*@var{number} characters from @var{buffer}
to @var{file}.
@subheading Return Value
The number of items of size @var{size} written, or -1 on error.
@subheading Example
@example
int foo[10];
fwrite(foo, sizeof(int), 10, stdin);
@end example
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?