This shows you the differences between two versions of the page.
|
c:string.h:strtok [2013/02/17 02:49] Daniel Gohlke |
c:string.h:strtok [2024/02/16 01:06] (current) |
||
|---|---|---|---|
| Line 7: | Line 7: | ||
| </code> | </code> | ||
| ===== description of strtok ===== | ===== description of strtok ===== | ||
| - | Function strtok breaks a string (s1) into individual strings based on the so-called token. The string is separated by one delimiter (s2). | + | Function strtok breaks a string (str1) into individual strings based on the so-called token. The string is separated by one delimiter (str2). |
| - | "s2" may contain multiple tokens, e.g. s2 = "\ n" (ie separation in space, comma, New Line, Point). | + | "str2" may contain multiple tokens, e.g. str2 = "\ n" (ie separation in space, comma, New Line, Point). |
| ===== strtok C Sourcecode Example ===== | ===== strtok C Sourcecode Example ===== | ||