if (ioperm(0x7B,0x 7A,1)) {
printf("Sorry, you were not able to gain access to the ports\n");
printf("You must be root to run this program\n");
exit(1);
}
int s1;
s1 = (inb(0x7A));
p=s1;
printf("sensor1 = %d\n",s1);
sleep(3);
i need to know what is the problem with this program..
i want to design a program that read from parallel input
can someone give me a suggestion how to fix it..or any others way to do this
if there is any website that i can use as my tutorial using inb function
printf("Sorry, you were not able to gain access to the ports\n");
printf("You must be root to run this program\n");
exit(1);
}
int s1;
s1 = (inb(0x7A));
p=s1;
printf("sensor1 = %d\n",s1);
sleep(3);
i need to know what is the problem with this program..
i want to design a program that read from parallel input
can someone give me a suggestion how to fix it..or any others way to do this
if there is any website that i can use as my tutorial using inb function
Comment