Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- ClipOn 3.0 Reference - c_lptinit() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 C_LPTINIT()

 DESCRIPTION

 C_LPTINIT() initializes the printer attached to the specified LPT
 port and returns information about the status of the printer.

 SYNTAX

 C_LPTINIT(port)

 PARAMETERS

 port (N) is the LPT port number where the printer is attached.
 port must be specified as a numeric where 1=LPT1, 2=LPT2, etc.

 RETURNS

 C_LPTINIT() returns the status of the printer attached to the
 specified port as a numeric.  The status codes are as follows:

 STATUS    DESCRIPTION
 ------    -----------
 0         Printer selected and ready
 1         No paper
 2         Timed out
 3         IO error
 4         Printer acknowledge
 5         Printer not busy

 EXAMPLES

 if c_lptinit(1) = 0
   do print_routine
 endif


See Also: C_LPTSTAT() C_LPTWRITE() C_ISPRINT()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson