struct _tm vs struct tm

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

struct _tm vs struct tm

Uwe Bonnes

we define
 typedef struct _tm tm;
 struct _tm {
 int    gmtime_r(const time_t * timer, tm * theTime);
while e.g. Linux man page tells about gmtime_r
 struct tm *gmtime_r(const time_t *timep, struct tm *result);

No type "tm" is known.

This mixture cause some problems. Is there any reason why we do it
our way? Any reason not to remove "typdef ... tm" and declare struct

Uwe Bonnes                [hidden email]

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 1623569 ------- Fax. 06151 1623305 ---------