mirror of
https://git.planet-casio.com/Vhex-Kernel-Core/fxlibc.git
synced 2025-01-06 08:53:37 +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
|
}; break
|
||||||
/* Perform a sub-call to strftime to expand a complex format */
|
/* Perform a sub-call to strftime to expand a complex format */
|
||||||
#define do_strftime(fmt) { \
|
#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; \
|
if(_written == 0) goto full; \
|
||||||
len += _written; \
|
len += _written; \
|
||||||
}; break
|
}; 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)
|
const struct tm * restrict time)
|
||||||
{
|
{
|
||||||
size_t len = 0;
|
size_t len = 0;
|
||||||
|
|
Loading…
Reference in a new issue