[Top][All Lists]
[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
- parse_time(), Bruce Korb, 2008/11/01
- Re: parse_time(), Bruno Haible, 2008/11/02
- Re: parse_time(), Bruce Korb, 2008/11/02
- Re: parse_time(), Bruno Haible, 2008/11/02
- Re: parse_duration(), Bruce Korb, 2008/11/02
- Re: parse_duration(), Bruno Haible, 2008/11/03
- Re: parse_duration(), Bruce Korb, 2008/11/04
- Re: parse_duration(), Bruno Haible, 2008/11/05
- Re: parse_duration(), Bruce Korb, 2008/11/05
- Re: parse_duration(),
Bruce Korb <=
- Re: parse_duration(), Bruno Haible, 2008/11/17
Re: parse_time(), Bruce Korb, 2008/11/02