diff options
author | 2011-07-25 00:38:52 +0000 | |
---|---|---|
committer | 2011-07-25 00:38:52 +0000 | |
commit | 8c40de08f9d12a182e23e357bcca21c5be683dd9 (patch) | |
tree | df554e154d9ded444e70f01eb8a84b1212071f78 /lib/libc/string/strsep.3 | |
parent | occured -> occurred; (diff) | |
download | wireguard-openbsd-8c40de08f9d12a182e23e357bcca21c5be683dd9.tar.xz wireguard-openbsd-8c40de08f9d12a182e23e357bcca21c5be683dd9.zip |
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
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 . |