rlnumd.c

来自「一个很好的unix网络编程框架」· C语言 代码 · 共 17 行

C
17
字号
#include <stdio.h>void main( void ){	int cnt = 0;	char line[ 1024 ];	/*	 * We have to explicitly set line buffering since the stdio	 * routines will not see the socket as a terminal device.	 */	setvbuf( stdout, NULL, _IOLBF, 0 );	while ( fgets( line, sizeof( line ), stdin ) != NULL )		printf( "%3i: %s", ++cnt, line );}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?