| 201 | static char *old_tz = TZ_INTACT; |
| 202 | |
| 203 | void tz_set(const str *tz) |
| 204 | { |
| 205 | #define TZBUF_SZ 50 |
| 206 | char tzbuf[TZBUF_SZ]; |
| 207 | |
| 208 | if (tz->len >= TZBUF_SZ) |
| 209 | return; |
| 210 | |
| 211 | memcpy(tzbuf, tz->s, tz->len); |
| 212 | tzbuf[tz->len] = '\0'; |
| 213 | |
| 214 | _tz_set(tzbuf); |
| 215 | #undef TZBUF_SZ |
| 216 | } |
| 217 | |
| 218 | |
| 219 | void _tz_set(const char *tz) |
no test coverage detected