⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sendfile.c

📁 unix环境高级编程的源代码
💻 C
字号:
#include    "lprps.h"

void
send_file(void)        /* called by main() to copy stdin to printer */
{
    int        c;

    init_input(1);
    set_intr();                /* we catch SIGINT */

    while ( (c = getchar()) != EOF)        /* main loop of program */
        out_char(c);        /* output each character */
    out_char(EOF);            /* output final buffer */

    block_write(&eofc, 1);     /* send EOF to printer */
    proc_upto_eof(0);        /* wait for printer to send EOF back */
}

⌨️ 快捷键说明

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