bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: parse_duration()


From: Bruce Korb
Subject: Re: parse_duration()
Date: Sun, 16 Nov 2008 11:23:47 -0800
User-agent: Thunderbird 2.0.0.12 (X11/20071114)

Bruce Korb wrote:
Bruno Haible wrote:

For this context, the right, proper and easiest solution is to say that
months are 30 days and leave it at that.

Hi Bruno,

I found my round tuit:  The problem with "char const" is that
strtoul takes a "char **" as its second argument.  So it is
rather a bother to recast a "char const **" address to "char **"
all the time.  Maybe I ought to just wrap "strtoul" in a macro
#define strconsttoul(_s, _sp, _b)  strtoul((_s), (char **)(_sp), (_b))
but normally it is just easier to not mess with const chars.
Anyway, I'll add that #define "fairly soon".  Thanks - Bruce




reply via email to

[Prev in Thread] Current Thread [Next in Thread]