Search:

Type: Posts; User: qny

Search: Search took 0.01 seconds.

  1. Thread: reset strtok()

    by qny
    Replies
    16
    Views
    10,286

    Indeed, it does alter the source string. And it...

    Indeed, it does alter the source string.
    And it keeps information in static (local) variables.
  2. Thread: reset strtok()

    by qny
    Replies
    16
    Views
    10,286

    Write your own version of strtok(). Then you'll...

    Write your own version of strtok().
    Then you'll understand what you are doing wrong.

    after the initial strtok() with a non-NULL 1st parameter you have to call strtok() with a NULL for the 1st...
  3. Thread: reset strtok()

    by qny
    Replies
    16
    Views
    10,286

    Hint: there's a function in the C Standard...

    Hint: there's a function in the C Standard library named strstr() (prototype in <string.h>) which may be of help.
Results 1 to 3 of 3