summaryrefslogtreecommitdiff
path: root/lib/strftime.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1997-01-22 23:23:04 +0000
committerJim Meyering <jim@meyering.net>1997-01-22 23:23:04 +0000
commit48569d6b980c44f00162ff54eadf62fb98e171c9 (patch)
treed9f70250d832476d17f8e994737ceb156739b7a8 /lib/strftime.c
parent211fe36692ba157811a66c041e6ed8bfe7b002db (diff)
downloadcoreutils-48569d6b980c44f00162ff54eadf62fb98e171c9.tar.xz
[strftime]: Add parameters to macro definition. From Drepper.
Diffstat (limited to 'lib/strftime.c')
-rw-r--r--lib/strftime.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/strftime.c b/lib/strftime.c
index 649cdf431..f2a64c9d7 100644
--- a/lib/strftime.c
+++ b/lib/strftime.c
@@ -349,10 +349,12 @@ static char const month_name[][10] =
# ifdef strftime
# undef strftime
# endif
-# define strftime _strftime_copytm
+# define strftime(S, Maxsize, Format, Tp) \
+ _strftime_copytm ((S), (Maxsize), (Format), (Tp))
#endif
+
/* Write information from TP into S according to the format
string FORMAT, writing no more that MAXSIZE characters
(including the terminating '\0') and returning number of