strtok.3 (41762) | strtok.3 (42869) |
---|---|
1.\" Copyright (c) 1998 Softweyr LLC. All rights reserved. 2.\" 3.\" strtok_r, from Berkeley strtok 4.\" Oct 13, 1998 by Wes Peters <wes@softweyr.com> 5.\" 6.\" Copyright (c) 1988, 1991, 1993 7.\" The Regents of the University of California. All rights reserved. 8.\" --- 73 unchanged lines hidden (view full) --- 82from the same string, should pass a null pointer instead. 83The separator string, 84.Fa sep , 85must be supplied each time, and may change between calls. 86.Pp 87The 88.Fn strtok_r 89function is a reentrant version of | 1.\" Copyright (c) 1998 Softweyr LLC. All rights reserved. 2.\" 3.\" strtok_r, from Berkeley strtok 4.\" Oct 13, 1998 by Wes Peters <wes@softweyr.com> 5.\" 6.\" Copyright (c) 1988, 1991, 1993 7.\" The Regents of the University of California. All rights reserved. 8.\" --- 73 unchanged lines hidden (view full) --- 82from the same string, should pass a null pointer instead. 83The separator string, 84.Fa sep , 85must be supplied each time, and may change between calls. 86.Pp 87The 88.Fn strtok_r 89function is a reentrant version of |
90.Fn strtok , 91the context pointer | 90.Fn strtok . 91The context pointer |
92.Fa last 93must be provided on each call. 94.Fn strtok_r 95may also be used to nest two parsing loops within one another, as | 92.Fa last 93must be provided on each call. 94.Fn strtok_r 95may also be used to nest two parsing loops within one another, as |
96long as seperate context pointers are used. | 96long as separate context pointers are used. |
97.Pp 98The 99.Fn strtok 100and 101.Fn strtok_r 102functions 103return a pointer to the beginning of each subsequent token in the string, 104after replacing the token itself with a --- 63 unchanged lines hidden --- | 97.Pp 98The 99.Fn strtok 100and 101.Fn strtok_r 102functions 103return a pointer to the beginning of each subsequent token in the string, 104after replacing the token itself with a --- 63 unchanged lines hidden --- |