On Tue, May 13, 2014 at 06:28:20PM +0100, Chris Young wrote:
> Hi Vince
>
> > add strptime compatability
>
> str(p|f)time "%s" appears to be a non-standard extension. Certainly
> it doesn't work here, and I can't see it in any documentation. It
> might be better to use %c, even though that needs a bit more storage
> space, or just use your compatibility functions for all platforms.
Right, I added
utils/time.h
which declares and documents
nserror nsc_snptimet(char *str, size_t size, time_t *timep);
int nsc_sntimet(char *str, size_t size, time_t *timep);
Hope thats acceptable to everyone. They use the troublesome
str(p|f)time on unix where present and less "correct" methods
elsewhere.
Printing and reading time_t directly appears to be a bit of a missing
bit of the specification, hence the non-standard extensions.
>
> Chris
>
>
--
Regards Vincent
http://www.kyllikki.org/
No comments:
Post a Comment