Anybody know how to send and recieve a byte from the parallel port with Borland 5.5. outportb and inportb are not recognized funtcions and don't know any other way.
Anybody know how to send and recieve a byte from the parallel port with Borland 5.5. outportb and inportb are not recognized funtcions and don't know any other way.
you might have the functions read and write available on your implementation-they are defined in unistd.h, I think. Read returns a value of ssize_t, which is the amount read. It accepts an int file descriptor, a pointer to the buffer to write to, and the amount you plan on reading, of type size_t. Write is exactly the same. I think they both return -1 if an error occurs, and of course, there are myriads of erronos.
I go to encounter for the millionth time the reality of experience and to forge in the smithy of my soul the uncreated conscience of my race.
Windows XP consists of 32 bit extensions and a graphical shell for a 16 bit patch to an 8 bit operating system originally coded for a 4 bit microprocessor, written by a 2 bit company, that can't stand 1 bit of competition.
If outportb and inportb don't work, try outp and inp.
-Prelude
My best code is written with the delete key.
outp and inp don't work either. Tried them already.