struct _tm vs struct tm
bon-1JbLm1bU5j5ZIx36JBfelj3+ndqKAYMe9FMPySWZwLkb1SvskN2V4Q@public.gmane.org Tue, 19 Mar 2019 18:02:24 +0100
| Newsgroups | gmane.comp.hardware.microcontrollers.ethernut |
|---|---|
| Message-ID | <[email protected]> |
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-1JbLm1bU5j5ZIx36JBfelj3+ndqKAYMe9FMPySWZwLkb1SvskN2V4Q@public.gmane.org
Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt
--------- Tel. 06151 1623569 ------- Fax. 06151 1623305 ---------
_______________________________________________
http://lists.egnite.de/mailman/listinfo/en-nut-discussion