if i have this code:
int main(int argc, char *argv[]) {
struct tm tmbuf;
time_t timeinsecs;
int n, rc;
char req[16], resource[128], proto[16], fname[128];
char buffer[1024], dates[64];
rc=read(0,buffer,1024);
how would i go about extracting the three substrings into req, resource and proto using the sscanf function?
can someone please talk me through a solution whereby i wud be able to do another question myself?...i am sorry for posting this its just that on weekends i dont have access to a tutor :)..thanks guys