tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: declaration of strptime
On Wed, Jan 09, 2008 at 08:55:00PM +0000, Steven M. Bellovin wrote:
> I don't agree. The linux man page for strptime() starts
>
> #define _XOPEN_SOURCE /* glibc2 needs this */
> #include <time.h>
>
> char *strptime(const char *s, const char *format, struct tm *tm);
>
> which is a lot friendlier.
...and which is incorrect. As the NetBSD man page correctly descripes,
this was added later. Seriously, to work around broken Linux headers it
is better to just define _GNU_SOURCE, which doesn't have nasty side
effects on other platforms.
Joerg
Home |
Main Index |
Thread Index |
Old Index