Advertisement
Guest User

Untitled

a guest
Apr 15th, 2020
294
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.36 KB | None | 0 0
  1. char *find(char *input, uint8_t const type, bool const first)
  2. {
  3.     char *found = NULL;
  4.     char del = delimiter[type];
  5.  
  6.     if (first)
  7.     {
  8.         constrain[type] = input + strlen(input) - 1;
  9.         next[type] = input;
  10.     }
  11.     else if (next[type] > constrain[type]) return (NULL);
  12.  
  13.     found = strtok(next[type], &del); // OVDJE
  14.     next[type] += strlen(found) + 1;
  15.  
  16.     return (found);
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement