I have been provided a client and server code and asked to run them. THe server just echos what the client tells him. I need to fix whats wrong with the code. I have noticed that if i close the...
Type: Posts; User: ursula
I have been provided a client and server code and asked to run them. THe server just echos what the client tells him. I need to fix whats wrong with the code. I have noticed that if i close the...
that worked too, thanks!
Well, ive been handling several strings with multiple &s in them. It is working like that... i guess i could also do something like
sscanf(line, "%[^&]&%s", string1, string2);
I did know about the^ but i wasnt sure how to work with that... Heres how i solved it
char *line="term1=something something&term2=something2";
char *string1, *string2, *x);
sscanf(line,...
what if you swap these lines around:
ssmallest = smallest;
smallest = num1;
slargest = largest;
largest = num1;
i follow u, sorry. I thought i needed that.
However, it still doesnt work. it extracts the first half "term1=the cat" but it ignores string2.
the line has no comma its just "term1=something something&term2=somethingelse"
I need help using sscanf. I have googled it and have been testing this for a few days and i just cant get it right.
I have a string, lets say:
char *line="term1=the cat&term2=M"
I need...
It worked like a charm! thanks!
i do define the struct rtp_hdr_t. Thats the second part.
Im not following what u mean....
So heres my code:
char buf[256];
struct rtp_hdr_t *header = (struct rtp_hdr_t *) buf;
memset(buf,0,256);
header->version = 2;
header->p = 0;
header->x = 0;