Search:

Type: Posts; User: ursula

Search: Search took 0.00 seconds.

  1. socket programming question, closing sockets...

    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...
  2. Replies
    14
    Views
    4,596

    that worked too, thanks!

    that worked too, thanks!
  3. Replies
    14
    Views
    4,596

    Well, ive been handling several strings with...

    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);
  4. Replies
    14
    Views
    4,596

    I did know about the^ but i wasnt sure how to...

    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,...
  5. what if you swap these lines around: ...

    what if you swap these lines around:


    ssmallest = smallest;
    smallest = num1;



    slargest = largest;
    largest = num1;
  6. Replies
    14
    Views
    4,596

    i follow u, sorry. I thought i needed that. ...

    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.
  7. Replies
    14
    Views
    4,596

    the line has no comma its just "term1=something...

    the line has no comma its just "term1=something something&term2=somethingelse"
  8. Replies
    14
    Views
    4,596

    sscanf and string handling question

    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...
  9. It worked like a charm! thanks!

    It worked like a charm! thanks!
  10. i do define the struct rtp_hdr_t. Thats the...

    i do define the struct rtp_hdr_t. Thats the second part.


    Im not following what u mean....
  11. help needed with dereferencing pointer to incomplete type error

    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;
Results 1 to 11 of 11