proc_child.c

来自「Apache HTTP Server 是一个功能强大的灵活的与HTTP/1.1相」· C语言 代码 · 共 22 行

C
22
字号
#include "apr.h"#include <stdio.h>#if APR_HAVE_UNISTD_H#include <unistd.h>#endif#if APR_HAVE_IO_H#include <io.h>#endif#include <stdlib.h>int main(void){    char buf[256];    apr_ssize_t bytes;        bytes = read(STDIN_FILENO, buf, 256);    if (bytes > 0)        write(STDOUT_FILENO, buf, bytes);    return 0; /* just to keep the compiler happy */}

⌨️ 快捷键说明

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