Skip to content

Instantly share code, notes, and snippets.

View MudkipMao's full-sized avatar
💭
keebs

George Mao MudkipMao

💭
keebs
View GitHub Profile
@efeciftci
efeciftci / strtok_example.c
Last active October 2, 2024 21:18
An example that shows usage of strtok function in C programming language.
/*
* The following description is from Linux Programmer's Manual (strtok(3)):
*
* #include <string.h>
* char *strtok(char *str, const char *delim);
*
* The strtok() function breaks a string into a sequence of zero or more
* nonempty tokens. On the first call to strtok() the string to be parsed
* should be specified in str. In each subsequent call that should parse
* the same string, str must be NULL.