Writing to the parallel port
I want to write C code to be able to write string to my printer via the parallel port.
The printer that I used is a Zebra.
I know that I need to use "ioperm (BASEPORT, 1, 1)" where BASEPORT is 0x378.
I know that I need to use "outb(value, BASEPORT)" function. I assume that "value" needs to be a byte. Please, let me know if I am wrong.
If it is the case, how can I send a "string" to my parallel port? In Windows, I used "fputs". Is there any equivalent?
Should I stick with "outb" and do something like a loop through my string and send byte by byte that string? If so, how do you suggest to do it?