Search:

Type: Posts; User: Salem

Search: Search took 0.32 seconds.

  1. Thread: Parsing string

    by Salem
    Replies
    20
    Views
    4,470

    > if(*chr != '\n' && *chr != '\0' && *chr != 32...

    > if(*chr != '\n' && *chr != '\0' && *chr != 32 /*space*/)
    How many times is this going to be true, resulting in a strcat of a whole string to another string?

    > Unfortunately sscanf is a...
  2. Thread: Parsing string

    by Salem
    Replies
    20
    Views
    4,470

    How about actually creating some memory you can...

    How about actually creating some memory you can store strings in?

    You know, like an array?

    char foo[100] = { 0 };
  3. Thread: Parsing string

    by Salem
    Replies
    20
    Views
    4,470

    > strcat(com, chr); > ...

    > strcat(com, chr);
    > strcat(val, chr);
    And where are these pointing?
    You have two garbage pointers, so just let loose the hell-hounds.
Results 1 to 3 of 3