mirror of
https://frontier.innolan.net/rainlance/amiga-tz.git
synced 2025-12-06 15:52:06 +00:00
tweaks
SCCS-file: strftime.c SCCS-SID: 7.30
This commit is contained in:
committed by
Paul Eggert
parent
8bce2a1847
commit
810d389269
@ -52,7 +52,9 @@ struct lc_time_T {
|
|||||||
const char * date_fmt;
|
const char * date_fmt;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifdef LOCALE_HOME
|
||||||
static struct lc_time_T localebuf;
|
static struct lc_time_T localebuf;
|
||||||
|
#endif /* defined LOCALE_HOME */
|
||||||
|
|
||||||
static const struct lc_time_T C_time_locale = {
|
static const struct lc_time_T C_time_locale = {
|
||||||
{
|
{
|
||||||
@ -115,9 +117,11 @@ const size_t maxsize;
|
|||||||
const char * const format;
|
const char * const format;
|
||||||
const struct tm * t;
|
const struct tm * t;
|
||||||
{
|
{
|
||||||
char * p;
|
char * p;
|
||||||
|
|
||||||
|
#ifdef LOCALE_HOME
|
||||||
localebuf.mon[0] = 0;
|
localebuf.mon[0] = 0;
|
||||||
|
#endif /* defined LOCALE_HOME */
|
||||||
p = _fmt(((format == NULL) ? "%c" : format), t, s, s + maxsize);
|
p = _fmt(((format == NULL) ? "%c" : format), t, s, s + maxsize);
|
||||||
if (p == s + maxsize)
|
if (p == s + maxsize)
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user