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


biosprint

Syntax

#include <stdio.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.

Example

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


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

  prev next   webmaster     delorie software   privacy  
  Copyright © 1997     Updated Apr 1997