mirror of
https://frontier.innolan.net/rainlance/amiga-tz.git
synced 2026-03-21 09:08:49 +00:00
21 lines
335 B
C
21 lines
335 B
C
#include "time_header.h"
|
|
|
|
struct tm *localtime_tzset(time_t const *timep, struct tm *tmp, bool setname)
|
|
{
|
|
int err = lock();
|
|
|
|
if (err) {
|
|
errno = err;
|
|
return NULL;
|
|
}
|
|
|
|
if (setname || !lcl_is_set)
|
|
tzset_unlocked();
|
|
|
|
tmp = localsub(lclptr, timep, setname, tmp);
|
|
|
|
unlock();
|
|
|
|
return tmp;
|
|
}
|