First proposal for new ISO C 9x time API

Markus Kuhn Markus.Kuhn at cl.cam.ac.uk
Sun Sep 6 16:29:59 UTC 1998


Markus Kuhn wrote on 1998-09-04 19:28 UTC:
> // display a brocken down time
> 
> size_t strfxtime(char * restrict s,
> 		 size_t maxsize,
> 		 const char * restrict format,
> 		 const struct xtm * restrict timeptr);

Actually, while thinking about it, I believe it might be both more
efficient and more flexible to pass to strfxtime the original xtime_t
value plus the timezone descriptor, and not the broken-down struct xtm:

size_t strfxtime(char * restrict s,
		 size_t maxsize,
		 const char * restrict format,
		 const struct xtime * restrict timeptr,
		 const timezone_t * restrict tzptr);

Markus

-- 
Markus G. Kuhn, Security Group, Computer Lab, Cambridge University, UK
email: mkuhn at acm.org,  home page: <http://www.cl.cam.ac.uk/~mgk25/>




More information about the tz mailing list