diff options
-rw-r--r-- | src/lib/libc/stdlib/strtoul.3 | 7 |
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 , |
84 | which must be a number between 2 and 36 inclusive | 84 | which must be a number between 2 and 36 inclusive |
85 | or the special value 0. | 85 | or the special value 0. |
86 | If the string in | ||
87 | .Fa nptr | ||
88 | represents a negative number, it will be converted to its unsigned equivalent. | ||
89 | This behavior is consistent with what happens when a signed integer type is | ||
90 | cast to its unsigned counterpart. | ||
86 | .Pp | 91 | .Pp |
87 | The string may begin with an arbitrary amount of whitespace | 92 | The string may begin with an arbitrary amount of whitespace |
88 | (as determined by | 93 | (as determined by |