Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Library for Clipper - <b>l_comwrite()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
                                 L_COMWRITE()


Syntax:        L_COMWRITE(<expC>,<expN>)


Purpose:       To write a character to a specified serial
               communications port.


Arguments:     <expC> is the character to be written to the port.

               <expN> is the port number for which the character is
               destined.


Returns:       An integer value representing the port status after the
               write operation.
               -1 = Syntax Error
                0 = Timed out!


Usage:         See L_COMSTAT() for details of port status and possible
               write failure..


Examples:      * Write a character "#" to 2nd serial port
               port = 1
               character = "#"
               L_COMWRITE(character,port)


Language:      Assembler

See Also: L_COMSTAT() L_COMREAD() L_COM2LPT() L_LPTINIT()

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