About 123,000 results
Open links in new tab
  1. How does the strtok function in C work? - Stack Overflow

    Example - if you have "this,is,a,string", successive calls to strtok will generate pointers as follows (the ^ is the value returned). Note that the '\0' is added where the tokens are found; this means …

  2. How does strtok () split the string into tokens in C?

    Jul 15, 2016 · Please explain to me the working of strtok() function. The manual says it breaks the string into tokens. I am unable to understand from the manual what it actually does. I added …

  3. c - Implementation of strtok () function - Stack Overflow

    Mar 9, 2015 · I need to write my function strtok. Below is my code. The problem is - I can't display result string. In code I use strcpy() and then display new array. Is it possible to display string …

  4. c - How to use strtok () - Stack Overflow

    Sep 21, 2013 · After the first call to strtok(), you must use NULL as the first argument to indicate that you are continuing where the previous call left off.

  5. char - C: correct usage of strtok_r - Stack Overflow

    Apr 12, 2013 · The documentation for strtok_r is quite clear. The strtok_r () function is a reentrant version strtok (). The saveptr argument is a pointer to a char * variable that is used internally …

  6. Using strtok in c - Stack Overflow

    Nov 12, 2011 · I need to use strtok to read in a first and last name and seperate it. How can I store the names where I can use them idependently in two seperate char arrays? #include …

  7. Nested strtok function problem in C - Stack Overflow

    I have a string like this: a;b;c;d;e f;g;h;i;j 1;2;3;4;5 and i want to parse it element by element. I used nested strtok function but it just splits first line and makes null the token pointer. Ho...

  8. What are the differences between strtok and strsep in C

    Aug 28, 2011 · Could someone explain me what differences there are between strtok() and strsep()? What are the advantages and disadvantages of them? And why would I pick one …

  9. strtok function in C - Stack Overflow

    May 17, 2016 · 0 In addition to separating the full string with and date string with strtok_r, another method you can use to handle any re-entrant situation, is to simply walk a pointer down your …

  10. strtok function in C programming - Stack Overflow

    Sep 26, 2013 · Per man strtok: The strtok () function parses a string into a sequence of tokens. On the first call to strtok () the string to be parsed should be specified in str. In each …