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.\" --- 34 unchanged lines hidden (view full) --- 43.\" LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF 44.\" USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 45.\" ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 46.\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 47.\" OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 48.\" SUCH DAMAGE. 49.\" 50.\" @(#)strtok.3 8.2 (Berkeley) 2/3/94 |
51.\" $FreeBSD: head/lib/libc/string/strtok.3 81285 2001-08-08 11:48:28Z ru $ |
52.\" 53.Dd November 27, 1998 54.Dt STRTOK 3 55.Os 56.Sh NAME 57.Nm strtok , strtok_r 58.Nd string tokens 59.Sh LIBRARY 60.Lb libc 61.Sh SYNOPSIS 62.Fd #include <string.h> 63.Ft char * 64.Fn strtok "char *str" "const char *sep" 65.Ft char * 66.Fn strtok_r "char *str" "const char *sep" "char **last" 67.Sh DESCRIPTION 68.Bf -symbolic |
69This interface is obsoleted by 70.Xr strsep 3 . |
71.Ef 72.Pp 73The 74.Fn strtok 75function 76is used to isolate sequential tokens in a null-terminated string, 77.Fa str . 78These tokens are separated in the string by at least one of the --- 97 unchanged lines hidden --- |