p.c

来自「HTML语言的例子」· C语言 代码 · 共 20 行

C
20
字号
#include <stdio.h>

void
main(void)
{
/* Create a temporary buffer to hold the standard in data  block or multipart message */
	char buff[BUFSIZ];

/* Generate the appropriate server directive - see How-To 14.2 */
	printf("Content-type: text/plain\n\n");

/* Display the environment variables, etc. using the standard cgi app distributed with
   NCSA, Apache, and other servers. */
	system("test-cgi");

/* Read the standard input and simply display as text to the standard out. */
	while(gets(buff))
		puts(buff);
}

⌨️ 快捷键说明

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