diff options
| author | Giorgos Keramidas <keramida@FreeBSD.org> | 2009-02-08 08:26:58 +0000 |
|---|---|---|
| committer | Giorgos Keramidas <keramida@FreeBSD.org> | 2009-02-08 08:26:58 +0000 |
| commit | 0bc4c01d56f431e45379686f4b2230d4dd68fd69 (patch) | |
| tree | 84733b7498591d051cbf2c57414cc15ade21b29f /lib/libc/stdlib | |
| parent | 3beb4f7ed3a48246684663a057fbb4df69858624 (diff) | |
Notes
Diffstat (limited to 'lib/libc/stdlib')
| -rw-r--r-- | lib/libc/stdlib/atol.3 | 35 |
1 files changed, 32 insertions, 3 deletions
diff --git a/lib/libc/stdlib/atol.3 b/lib/libc/stdlib/atol.3 index b9cf9e9aa658..bb97c6f01067 100644 --- a/lib/libc/stdlib/atol.3 +++ b/lib/libc/stdlib/atol.3 @@ -32,7 +32,7 @@ .\" @(#)atol.3 8.1 (Berkeley) 6/4/93 .\" $FreeBSD$ .\" -.Dd November 28, 2001 +.Dd February 1, 2009 .Dt ATOL 3 .Os .Sh NAME @@ -78,13 +78,42 @@ representation. It is equivalent to: .Pp .Dl "strtoll(nptr, (char **)NULL, 10);" +.Sh COMPATIBILITY +The +.Fx +implementations of the +.Fn atol +and +.Fn atoll +functions are thin wrappers around +.Fn strtol +and +.Fn stroll +respectively, so these functions will affect the value of +.Va errno +in the same way that the +.Fn strtol +and +.Fn stroll +functions are able to. +This behavior of +.Fn atol +and +.Fn atoll +is not required by +.St -isoC +or +.St -isoC-c99 , +but it is allowed by all of +.St -isoC , St -isoC-99 +and +.St -p1003.1-2001 . .Sh ERRORS The functions .Fn atol and .Fn atoll -need not -affect the value of +may affect the value of .Va errno on an error. .Sh SEE ALSO |
