Some buggy versions of gcc complain about the use of %c:
"warning: `%c' yields only last 2 digits of year in some locales" .
Of course programmers are encouraged to use %c, it gives the preferred
date and time representation. One meets all kinds of strange obfuscations
to circumvent this gcc problem. A relatively clean one is to add an
intermediate function
size_t my_strftime(char *s, size_t max, const char *fmt,
const struct tm *tm) {
return strftime(s, max, fmt, tm);
}