sniprint.h

来自「国外网站上的一些精典的C程序」· C头文件 代码 · 共 59 行

H
59
字号
/***  Header file for SNIPPETS PC printer control functions*/#ifndef SNIPRINT__H#define SNIPRINT__H#include <stdio.h>            /* For FILE *//***  ASSIGNPRN.C*/#define NUM_OF_PRNTRS 6extern FILE *printer[NUM_OF_PRNTRS];int assign_printer(int number, char *device);/***  CHANGPRN.C*/typedef enum {LPT1, LPT2, LPT3, COM1, COM2, CON} PrintDevice;int change_prn(PrintDevice device);/***  PRTOGGLE.C*/int prtoggle(void);/***  PRTSCRN.C*/int PrtScrnStat(void);int PrtScrn(void);/***  PRTSTAT.C*/struct PrStatus {      unsigned int timeout  : 1;      unsigned int unused   : 2;      unsigned int IOerror  : 1;      unsigned int selected : 1;      unsigned int paperout : 1;      unsigned int ack      : 1;      unsigned int notbusy  : 1;};int prtstat(unsigned int);#endif /* SNIPRINT__H */

⌨️ 快捷键说明

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