[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ULONG_MAX on Solaris
From: |
Simon Josefsson |
Subject: |
Re: ULONG_MAX on Solaris |
Date: |
Fri, 09 Dec 2005 12:06:21 +0100 |
User-agent: |
Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) |
Ben Pfaff <address@hidden> writes:
> Simon Josefsson <address@hidden> writes:
>
>> has ULONG_MAX in limits.h but not in stdlib.h. I believe C89 it to be
>> in stdlib.h.
>
> I don't think so. In a quick search through C99, I only saw
> ULONG_MAX mentioned as being defined in <limits.h>. I don't
> think C89 was different.
You are probably right, I was confused by the K&R book, it's only
reference for ULONG_MAX was inside the stdlib.h section. But I see
that it is documented under limits.h, and that is probably the correct
place. The strtoul description should probably have mentioned that
ULONG_MAX is in limits.h.
Problem solved. Thanks!