From 339c056f856313e215baab8ddc4bc0ce064b4571 Mon Sep 17 00:00:00 2001 From: schwarze <> Date: Mon, 25 Jul 2011 00:38:53 +0000 Subject: update HISTORY and SEE ALSO for all of string(3), together with various smaller improvements; jmc@ and nicm@ both ask me to get this in because further tweaking will be easier in-tree --- src/lib/libc/string/strsep.3 | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'src/lib/libc/string/strsep.3') diff --git a/src/lib/libc/string/strsep.3 b/src/lib/libc/string/strsep.3 index cceeda7577..63cdf2333a 100644 --- a/src/lib/libc/string/strsep.3 +++ b/src/lib/libc/string/strsep.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: strsep.3,v 1.12 2007/05/31 19:19:32 jmc Exp $ +.\" $OpenBSD: strsep.3,v 1.13 2011/07/25 00:38:53 schwarze Exp $ .\" .\" Copyright (c) 1990, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -32,7 +32,7 @@ .\" .\" @(#)strsep.3 8.1 (Berkeley) 6/9/93 .\" -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: July 25 2011 $ .Dt STRSEP 3 .Os .Sh NAME @@ -96,17 +96,15 @@ for (ap = argv; ap < &argv[9] && .Sh HISTORY The .Fn strsep -function is intended as a replacement for the -.Fn strtok +function first appeared in +.Bx 4.3 Reno . +It is intended as a replacement for the +.Xr strtok 3 function. While the -.Fn strtok +.Xr strtok 3 function should be preferred for portability reasons (it conforms to .St -ansiC ) it is unable to handle empty fields, i.e., detect fields delimited by two adjacent delimiter characters, or to be used for more than a single string at a time. -The -.Fn strsep -function first appeared in -.Bx 4.4 . -- cgit v1.2.3-55-g6feb