inb problem..

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rip123456
    New Member
    • Dec 2007
    • 4

    #1

    inb problem..

    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
  • weaknessforcats
    Recognized Expert Expert
    • Mar 2007
    • 9214

    #2
    inb() is a Linux goodie and I would have to do the same Google that you would.

    Comment

    Working...