diff options
author | default <nobody@localhost> | 2023-01-28 17:49:02 +0100 |
---|---|---|
committer | default <nobody@localhost> | 2023-01-28 17:49:02 +0100 |
commit | 876bebd9ac904ca930117237edaf8c3dcae7a922 (patch) | |
tree | 7e91e26c49e18fd80c7de93ff275ffce83fb14df /xs_time.h | |
parent | 5163f93c028bead0bd6d84f75b5df33c41973aba (diff) |
Backport from xs.
Diffstat (limited to 'xs_time.h')
-rw-r--r-- | xs_time.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -6,7 +6,7 @@ #include <time.h> -d_char *xs_str_time(time_t t, const char *fmt, int local); +xs_str *xs_str_time(time_t t, const char *fmt, int local); #define xs_str_localtime(t, fmt) xs_str_time(t, fmt, 1) #define xs_str_utctime(t, fmt) xs_str_time(t, fmt, 0) time_t xs_parse_time(const char *str, const char *fmt, int local); @@ -15,8 +15,8 @@ time_t xs_parse_time(const char *str, const char *fmt, int local); #ifdef XS_IMPLEMENTATION -d_char *xs_str_time(time_t t, const char *fmt, int local) -/* returns a d_char with a formated time */ +xs_str *xs_str_time(time_t t, const char *fmt, int local) +/* returns a string with a formated time */ { struct tm tm; char tmp[64]; |