}
-void copy_tm_to_TM(const struct tm *src, struct TM *dest) {
+void copy_little_tm_to_big_TM(const struct tm *src, struct TM *dest) {
if( src == NULL ) {
memset(dest, 0, sizeof(*dest));
}
}
-void copy_TM_to_tm(const struct TM *src, struct tm *dest) {
+void copy_big_TM_to_little_tm(const struct TM *src, struct tm *dest) {
if( src == NULL ) {
memset(dest, 0, sizeof(*dest));
}
struct tm safe_date;
GMTIME_R(&safe_time, &safe_date);
- copy_tm_to_TM(&safe_date, p);
+ copy_little_tm_to_big_TM(&safe_date, p);
assert(check_tm(p));
return p;
LOCALTIME_R(&safe_time, &safe_date);
- copy_tm_to_TM(&safe_date, local_tm);
+ copy_little_tm_to_big_TM(&safe_date, local_tm);
assert(check_tm(local_tm));
return local_tm;
return NULL;
}
- copy_tm_to_TM(&safe_date, local_tm);
+ copy_little_tm_to_big_TM(&safe_date, local_tm);
local_tm->tm_year = orig_year;
if( local_tm->tm_year != orig_year ) {