?? printchk.c
字號:
#include <bios.h>
#include <conio.h>
#include <stdio.h>
void main (void)
{
int status = 0;
int old_status = 0;
do
{
status = biosprint(2, 0, 0); // Read LPT1
if (status != old_status)
{
if (status & 1)
printf ("Time-out\t");
if (status & 8)
printf ("Output Error\t");
if (status & 16)
printf ("Printer Selected\t");
if (status & 32)
printf ("Out of Paper\t");
if (status & 64)
printf ("Acknowledge\t");
if (status & 128)
printf ("Printer Not Busy");
printf ("\n");
old_status = status;
}
}
while (! kbhit());
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -