Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - npready() test if printer at specified port is ready http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 npready()           Test if printer at specified port is ready
------------------------------------------------------------------------------
 Declaration
   printer.hdr

 Syntax
   func logical npready extern
   param value uint uLPTNumber

 Arguments
   uLPTNumber is the LPT port number to check. Possible values are
   1, 2, or 3.

 Return
   A logical indicating if the printer on the specified port is ready.

 Description
   This function returns .t. if the printer at the specified port is ready.

 Example
   #define EXAMPLE_IO
   #include example.hdr

   proc Test_npready
   vardef
      uint n
   enddef
   for n := 1 to 3
      ? "LPT" + istr( n ), "is " + iifc( npready( n ), "", "not " ) + "ready"
   next
   endproc

   proc main
   Test_npready()
   endproc

See Also: pready()

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