summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormillert <>2003-04-21 21:49:40 +0000
committermillert <>2003-04-21 21:49:40 +0000
commit8f1420b571676cc4a8a863fa689bb24e55d24f7d (patch)
treeea53feee65d48110897d99fd488b2ebf9195eec1 /src
parent3ee835a469583afca8ff62dd6ae097ae5dbd38f7 (diff)
downloadopenbsd-8f1420b571676cc4a8a863fa689bb24e55d24f7d.tar.gz
openbsd-8f1420b571676cc4a8a863fa689bb24e55d24f7d.tar.bz2
openbsd-8f1420b571676cc4a8a863fa689bb24e55d24f7d.zip
Mention that stroul() et al *do* accept negative numbers, they
just (effectively) cast to unsigned. ho@ OK
Diffstat (limited to 'src')
-rw-r--r--src/lib/libc/stdlib/strtoul.37
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/libc/stdlib/strtoul.3 b/src/lib/libc/stdlib/strtoul.3
index fd6a235309..0e804ec3f9 100644
--- a/src/lib/libc/stdlib/strtoul.3
+++ b/src/lib/libc/stdlib/strtoul.3
@@ -33,7 +33,7 @@
33.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34.\" SUCH DAMAGE. 34.\" SUCH DAMAGE.
35.\" 35.\"
36.\" $OpenBSD: strtoul.3,v 1.12 2003/03/06 18:19:26 kjell Exp $ 36.\" $OpenBSD: strtoul.3,v 1.13 2003/04/21 21:49:40 millert Exp $
37.\" 37.\"
38.Dd June 25, 1992 38.Dd June 25, 1992
39.Dt STRTOUL 3 39.Dt STRTOUL 3
@@ -83,6 +83,11 @@ The conversion is done according to the given
83.Fa base , 83.Fa base ,
84which must be a number between 2 and 36 inclusive 84which must be a number between 2 and 36 inclusive
85or the special value 0. 85or the special value 0.
86If the string in
87.Fa nptr
88represents a negative number, it will be converted to its unsigned equivalent.
89This behavior is consistent with what happens when a signed integer type is
90cast to its unsigned counterpart.
86.Pp 91.Pp
87The string may begin with an arbitrary amount of whitespace 92The string may begin with an arbitrary amount of whitespace
88(as determined by 93(as determined by