summaryrefslogtreecommitdiff
path: root/xs_time.h
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-01-28 17:49:02 +0100
committerdefault <nobody@localhost>2023-01-28 17:49:02 +0100
commit876bebd9ac904ca930117237edaf8c3dcae7a922 (patch)
tree7e91e26c49e18fd80c7de93ff275ffce83fb14df /xs_time.h
parent5163f93c028bead0bd6d84f75b5df33c41973aba (diff)
Backport from xs.
Diffstat (limited to 'xs_time.h')
-rw-r--r--xs_time.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/xs_time.h b/xs_time.h
index ff0e73e..94e472d 100644
--- a/xs_time.h
+++ b/xs_time.h
@@ -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];