sniprint.h

来自「c语言库函数!里面包含了所以c语言中的系统函数的实现及其详细说明和代码!请大家及」· C头文件 代码 · 共 61 行

H
61
字号
/* +++Date last modified: 05-Jul-1997 */

/*
**  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 6

extern 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 + -
显示快捷键?