Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- char *find(char *input, uint8_t const type, bool const first)
- {
- char *found = NULL;
- char del = delimiter[type];
- if (first)
- {
- constrain[type] = input + strlen(input) - 1;
- next[type] = input;
- }
- else if (next[type] > constrain[type]) return (NULL);
- found = strtok(next[type], &del); // OVDJE
- next[type] += strlen(found) + 1;
- return (found);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement