www.delorie.com/djgpp/doc/libc-2.02/libc_70.html   search  
Go to the first, previous, next, last section, table of contents.


biosprint

Syntax

#include <bios.h>

int biosprint(int cmd, int byte, int port)

Description

command = 0
byte is sent to parallel port port.
command = 1
Parallel port port is reset and initialized.
command = 2
The status of parallel port port is returned.
7654 3210  Meaning

---- ---X  Timeout
---- -XX-  Unused
---- X---  I/O Error
---X ----  Selected
--X- ----  Out of paper
-X-- ----  Acknowledged
X--- ----  Idle

Return Value

The printer status.

Portability

not ANSI, not POSIX

Example

while (*c)
  biosprint(0, *c++, 0);


Go to the first, previous, next, last section, table of contents.

  webmaster   donations   bookstore     delorie software   privacy  
  Copyright © 1998   by DJ Delorie     Updated Dec 1998  

Please take a moment to fill out this visitor survey
You can help support this site by visiting the advertisers that sponsor it! (only once each, though)