Re: [PARPORT] Segfault using ieee1284_find_ports

From: Blaise Gassend (blaise@gassend.com)
Date: Fri Nov 15 2002 - 09:59:39 EST

  • Next message: Jeff Silverman: "[PARPORT] I need help connecting a MicroTek Scanmaster E3 to an Intel RH7.3 box"

    Hi,

    I suspect that you wanted to do this:

    Quoted from Antilope on Fri, Nov 15, 2002 at 05:40:44AM -0300.
    > I write this simple test program,
    >
    > /********************************/
    > #include <stdio.h>
    > #include <ieee1284.h>
    >
    > int
    > main (int argc, char **argv)
    > {
    > int a;
    > struct parport_list *list;
       struct parport_list list;
    >
    > a = ieee1284_find_ports(list, 0);
       a = ieee1284_find_ports(&list, 0);
    > printf("%n",a);
    > }
    >
    > /*********************************/

    This way the function will actually have something to fill for you.

    Blaise Gassend

    -- To unsubscribe, send mail to: linux-parport-request@torque.net --
    -- with the single word "unsubscribe" in the body of the message. --



    This archive was generated by hypermail 2b29 : Fri Nov 15 2002 - 10:04:01 EST