mirror of
https://git.planet-casio.com/Vhex-Kernel-Core/fxlibc.git
synced 2025-01-04 07:53:36 +01:00
time: fix strftime being called strftime2
This commit is contained in:
parent
ddec761f61
commit
a7ae52b4c4
1 changed files with 2 additions and 2 deletions
|
@ -18,12 +18,12 @@ static const char *month_names[12] = {
|
|||
}; break
|
||||
/* Perform a sub-call to strftime to expand a complex format */
|
||||
#define do_strftime(fmt) { \
|
||||
size_t _written = strftime2(s+len, n-len, fmt, time); \
|
||||
size_t _written = strftime(s+len, n-len, fmt, time); \
|
||||
if(_written == 0) goto full; \
|
||||
len += _written; \
|
||||
}; break
|
||||
|
||||
size_t strftime2(char * restrict s, size_t n, const char * restrict format,
|
||||
size_t strftime(char * restrict s, size_t n, const char * restrict format,
|
||||
const struct tm * restrict time)
|
||||
{
|
||||
size_t len = 0;
|
||||
|
|
Loading…
Reference in a new issue