Top "Strtok" questions

strtok() is a Standard C (ISO 9899:1989) function for splitting a string in tokens.

strtok() - Why you have to pass the NULL pointer in order to get the next token in the string?

This is the explanation of strtok(). #include <string.h> char* strtok( char* s1, const char* s2 );* The first …

c++ c string pointers strtok
What's the difference between strtok and strtok_r in C?

What's the difference between strtok and strtok_r in C and when are we supposed to use which?

c strtok
strtok - char array versus char pointer

Possible Duplicate: strtok wont accept: char *str When using the strtok function, using a char * instead of a char [] results …

c arrays pointers strtok
strtok and memory leaks

I wrote a simple url parser using strtok(). here's the code #include <stdio.h> #include <stdlib.h&…

c memory free malloc strtok
Nested strtok function problem in C

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 …

c nested token tokenize strtok
implicit declaration of function ‘strtok_r’ [-Wimplicit-function-declaration] inspite including <string.h>

I have the following code to tokenize a string containing lines separated by \n and each line has integers separated …

c string tokenize strtok gcc-warning
Why does the compiler still warn me about unsafe strtok even after I define _CRT_SECURE_NO_WARNINGS?

I am using Visual Studio Express 2012 for Windows Desktop. I always get error Error C4996: 'strtok': This function or variable …

c++ strtok
Is there a way to count tokens in C?

I'm using strtok to split a string into tokens. Does anyone know any function which actually counts the number of …

c token delimiter strtok
C Delete last character in string

I want to delete last character in string first, i use strtok function My Input is : "Hello World Yaho" I …

c string character strtok
C strtok() split string into tokens but keep old data unaltered

I have the following code: #include <stdio.h> #include <string.h> int main (void) { char str[] = "…

c strtok