📄 fp
字号:
@c ----------------------------------------------------------------------
@node fpathconf, file system
@heading @code{fpathconf}
@subheading Syntax
@example
#include <unistd.h>
long fpathconf(int fd, int name);
@end example
@subheading Description
Returns configuration information on the filesystem that the
open file resides on. @xref{pathconf}
@subheading Return Value
The configuration value.
@c ----------------------------------------------------------------------
@node fprintf, stdio
@heading @code{fprintf}
@subheading Syntax
@example
#include <stdio.h>
int fprintf(FILE *file, const char *format, @dots{});
@end example
@subheading Description
Prints formatted output to the named file. @xref{printf}
@subheading Return Value
The number of characters written.
@c ----------------------------------------------------------------------
@node fpurge, stdio
@heading @code{fpurge}
@subheading Syntax
@example
#include <stdio.h>
int fpurge(FILE *file);
@end example
@subheading Description
This function purges the buffer for @var{file} without writing it to
disk.
@subheading Return Value
Zero on success, -1 on failure.
@c ----------------------------------------------------------------------
@node fputc, stdio
@heading @code{fputc}
@subheading Syntax
@example
#include <stdio.h>
int fputc(int character, FILE *file);
@end example
@subheading Description
This function writes the given @var{character} to the given @code{file}.
@subheading Return Value
The given character [0..255] or @code{EOF}.
@subheading Example
@example
fputc('\n', stdout);
@end example
@c ----------------------------------------------------------------------
@node fputs, stdio
@heading @code{fputs}
@subheading Syntax
@example
#include <stdio.h>
int fputs(const char *string, FILE *file);
@end example
@subheading Description
This function all the characters of @var{string} (except the trailing
@code{NULL}) to the given @var{file}.
@subheading Return Value
A nonnegative number on success, @code{EOF} on error.
@subheading Example
@example
fputs("Hello\n", stdout);
@end example
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -