Search:

Type: Posts; User: shaun84

Search: Search took 0.00 seconds.

  1. Replies
    12
    Views
    3,194

    Thanks for the feedback guys. From what I...

    Thanks for the feedback guys.

    From what I understand you have to use different syntax when referencing headers files that are not in the "include" directory.

    However, I have pid.h along with...
  2. Replies
    12
    Views
    3,194

    but w/o none of the functions defined in...

    but w/o <pid.h> none of the functions defined in it will work.
  3. Replies
    12
    Views
    3,194

    undefined reference to

    I keep getting compile error:

    ../../thread/thread.c:318: undefined reference to `pid_alloc`
    ../../thread/thread.c:350: undefined reference to `pi_get`

    thread.c looks like:


    ....
    #include...
  4. Thread: Opening a file

    by shaun84
    Replies
    5
    Views
    1,397

    Opening a file

    I am having trouble opening file.

    [code]
    // when file location is passed as an argument on command line
    /(1)

    FILE *fp;
    fp = fopen(argv[2],"r");
    // where argv[2] holds the file location
    //...
  5. Replies
    3
    Views
    1,231

    thanks

    thank you

    I tried that before but I put


    printf(argv[1][i]); // instead of

    printf("%c\n",argv[1][i]);
  6. Replies
    3
    Views
    1,231

    sorry.... the PHONE NUMBER is an argument for the...

    sorry.... the PHONE NUMBER is an argument for the program

    i.e.

    programname 4588742
  7. Replies
    3
    Views
    1,231

    Pointer manipulation

    Greetings,

    I am writing a program that based around the command line input of a phone number (numbers only).

    I understand that the number will be stored in char *argv[].
    (i.e. argv[1])

    I...
Results 1 to 7 of 7