ff
来自「Algorithms for Image Processing and Comp」· 代码 · 共 58 行
TXT
58 行
@c ----------------------------------------------------------------------
@node fflush, stdio
@heading @code{fflush}
@subheading Syntax
@example
#include <stdio.h>
int fflush(FILE *file);
@end example
@subheading Description
This function causes any unwritten buffered data to be written out to
the given @var{file}. This is useful in cases where the output is line
buffered and you want to write a partial line.
@subheading Return Value
Zero on success, -1 on error.
@subheading Example
@example
printf("Enter value : ");
fflush(stdout);
scanf(result);
@end example
@c ----------------------------------------------------------------------
@node ffs, misc
@heading @code{ffs}
@subheading Syntax
@example
#include <string.h>
int ffs(int mask);
@end example
@subheading Description
This function returns the position of the least significant bit set in
@var{mask}. For example:
@example
ffs(0x00000000) == 0
ffs(0x00000001) == 1
ffs(0x00000002) == 2
ffs(0x00000004) == 3
ffs(0x00010000) == 17
ffs(0x00010010) == 5
@end example
@subheading Return Value
The position of the bit, or zero if none are set.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?