Re: strtok and strtok_r



In <1189784868.567409.252880@xxxxxxxxxxxxxxxxxxxxxxxxxxx> siddhu <siddharth.sng@xxxxxxxxx> writes:

Otherwise how it keeps the information about s1?

strtok_r() requires an extra parameter. It uses this parameter to store
state information.

Did you read the man page?

--
John Gordon A is for Amy, who fell down the stairs
gordon@xxxxxxxxx B is for Basil, assaulted by bears
-- Edward Gorey, "The Gashlycrumb Tinies"

.