diff options
Diffstat (limited to 'lib/libc/string/strsep.3')
-rw-r--r-- | lib/libc/string/strsep.3 | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/lib/libc/string/strsep.3 b/lib/libc/string/strsep.3 index cceeda75772..63cdf2333ad 100644 --- a/lib/libc/string/strsep.3 +++ b/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 . |