diff options
author | Rich Felker <dalias@aerifal.cx> | 2018-09-07 22:52:03 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2018-09-12 14:34:30 -0400 |
commit | 01294da7f71958ed0d3aa5bdc8d625c405c8926a (patch) | |
tree | 29bb378ffb9b27f7eb0a95bd0370bf70cf7ef4c5 /src | |
parent | 72bc6cbfed34f9787cc740e55c793ebbf3a2fe67 (diff) | |
download | musl-01294da7f71958ed0d3aa5bdc8d625c405c8926a.tar.gz musl-01294da7f71958ed0d3aa5bdc8d625c405c8926a.tar.bz2 musl-01294da7f71958ed0d3aa5bdc8d625c405c8926a.tar.xz musl-01294da7f71958ed0d3aa5bdc8d625c405c8926a.zip |
move __strftime_fmt_1 declaration to time_impl.h
this is a helper function from strftime that's also used by wcsftime.
Diffstat (limited to 'src')
-rw-r--r-- | src/time/time_impl.h | 1 | ||||
-rw-r--r-- | src/time/wcsftime.c | 3 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/time/time_impl.h b/src/time/time_impl.h index cf9a28e5..5cc2fe2f 100644 --- a/src/time/time_impl.h +++ b/src/time/time_impl.h @@ -8,3 +8,4 @@ const char *__tm_to_tzname(const struct tm *); int __secs_to_tm(long long, struct tm *); void __secs_to_zone(long long, int, int *, long *, long *, const char **); const unsigned char *__map_file(const char *, size_t *); +const char *__strftime_fmt_1(char (*)[100], size_t *, int, const struct tm *, locale_t, int); diff --git a/src/time/wcsftime.c b/src/time/wcsftime.c index 23500cc8..31b30caf 100644 --- a/src/time/wcsftime.c +++ b/src/time/wcsftime.c @@ -2,10 +2,9 @@ #include <time.h> #include <locale.h> #include "locale_impl.h" +#include "time_impl.h" #include "libc.h" -const char *__strftime_fmt_1(char (*s)[100], size_t *l, int f, const struct tm *tm, locale_t loc, int pad); - size_t __wcsftime_l(wchar_t *restrict s, size_t n, const wchar_t *restrict f, const struct tm *restrict tm, locale_t loc) { size_t l, k; |