Search:

Type: Posts; User: SashaN

Search: Search took 0.00 seconds.

  1. Thread: reset strtok()

    by SashaN
    Replies
    16
    Views
    10,286

    I have not known that, but now. Thank you....

    I have not known that, but now. Thank you.
    AndiPersti thank you for interesting links.
  2. Thread: reset strtok()

    by SashaN
    Replies
    16
    Views
    10,286

    Do you have same example? For I don't understand...

    Do you have same example? For I don't understand how it works.
    That the point I do not understand. It receives a source string and returns tokens terminated by '\0'.
    But it doesn't alter the...
  3. Thread: reset strtok()

    by SashaN
    Replies
    16
    Views
    10,286

    Thank you for your help. strtok() works now as I...

    Thank you for your help.
    strtok() works now as I will, although the program is not ready yet.
    Here the code.

    #include <stdio.h>
    #include <string.h>
    #include <stdlib.h>

    void get_string(char...
  4. Thread: reset strtok()

    by SashaN
    Replies
    16
    Views
    10,286

    What is wrong in my code? #include ...

    What is wrong in my code?

    #include <stdio.h>
    #include <string.h>
    #include <stdlib.h>

    int main(void)
    {
    char *pos1, *pos2;
    char string[256];
  5. Thread: reset strtok()

    by SashaN
    Replies
    16
    Views
    10,286

    I have to find out, whether some word is...

    I have to find out, whether some word is contained more than one time in the string.
  6. Thread: reset strtok()

    by SashaN
    Replies
    16
    Views
    10,286

    reset strtok()

    Hallo!
    How can I reset strtoc()?
    After I have caled it twice "strtok(string, " ") ",
    it works not fine "strtok(NULL, " ")".
    Is there a solution?

    #include <stdio.h>
    #include <string.h>...
Results 1 to 6 of 6