Object Oriented Paradigm: Lab 02 Topic(s) : Arrays and Pointers
Object Oriented Paradigm: Lab 02 Topic(s) : Arrays and Pointers
Lab 02
Topic(s): Arrays and Pointers
Question No. 01
Page 1 of 2
char*strtok(char *s1, const char *s2);
A sequence of calls to strtok breaks string s1 into “tokens”—logical pieces such as words
in a line of text—separated by characters contained in string s2. The first call contains s1
as the first argument, and subsequent calls to continue tokenizing the same string contain
NULL as the first argument. A pointer to the current token is returned by each call. If there
are no more tokens when the function is called, NULL is returned.
Page 2 of 2