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...
Type: Posts; User: shaun84
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...
but w/o <pid.h> none of the functions defined in it will work.
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...
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
//...
thank you
I tried that before but I put
printf(argv[1][i]); // instead of
printf("%c\n",argv[1][i]);
sorry.... the PHONE NUMBER is an argument for the program
i.e.
programname 4588742
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...