[En-Nut-Discussion] struct _tm vs struct tm

bon at elektron.ikp.physik.tu-darmstadt.de bon at elektron.ikp.physik.tu-darmstadt.de
Tue Mar 19 18:02:24 CET 2019


Hello,

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
tm?

Thanks
-- 
Uwe Bonnes                bon at elektron.ikp.physik.tu-darmstadt.de

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


More information about the En-Nut-Discussion mailing list