Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2000-05-10 21:58:29 +0400
committerJeff Johnston <jjohnstn@redhat.com>2000-05-10 21:58:29 +0400
commitf35ceefaf0fcb9c78fd935e7e9c2aef1e96c79d0 (patch)
tree9c94c4e4a782281396b1b06f0a67650364e57f66 /newlib/libc/time
parentadfefc0b0672a09848a9de7f0d53d748245a87d0 (diff)
Wed May 10 13:52:24 2000 Egor Duda <deo@logos-m.ru>
* libc/time/asctime_r.c (asctime_r): Change output format. Day of month is now padded with space, not zero. This now conforms to ANSI standard.
Diffstat (limited to 'newlib/libc/time')
-rw-r--r--newlib/libc/time/asctime_r.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/time/asctime_r.c b/newlib/libc/time/asctime_r.c
index ff70ea415..2c02667e6 100644
--- a/newlib/libc/time/asctime_r.c
+++ b/newlib/libc/time/asctime_r.c
@@ -18,7 +18,7 @@ _DEFUN (asctime_r, (tim_p, result),
"Jul", "Aug", "Sep", "Oct", "Nov", "Dec"
};
- sprintf (result, "%.3s %.3s %.2d %.2d:%.2d:%.2d %d\n",
+ sprintf (result, "%.3s %.3s%3d %.2d:%.2d:%.2d %d\n",
day_name[tim_p->tm_wday],
mon_name[tim_p->tm_mon],
tim_p->tm_mday, tim_p->tm_hour, tim_p->tm_min,