[Gambas-devel] C/C++ Component
DA Corp.
oscarcld at ...31...
Mon Jun 9 22:23:59 CEST 2003
Excuse me.
I didn't know that file is for DOS. I want to write asynchronously, I don't
want use /dev/lp0, because it is for printing synchronously. I am trying
make a file in Linux.
under Linux the file portp.c is:
#include <asm/io.h>
int main()
{
if (ioperm(0x378,3,1))
{
fprintf(stderr,"I can´t acced to parallel port.\n");
return 0;
}
outb(0xFF,0x378);
}
This file send 0xFF to parallel port. It is compiled:
gcc -O -I /usr/include port.c
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/devel/attachments/20030609/4a29b171/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sg-0.gif
Type: image/gif
Size: 614 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/devel/attachments/20030609/4a29b171/attachment.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: IMSTP.gif
Type: image/gif
Size: 494 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/devel/attachments/20030609/4a29b171/attachment-0001.gif>
More information about the Devel
mailing list