mirror of
https://github.com/adtools/clib2.git
synced 2025-12-08 14:59:05 +00:00
- strftime() now ignores the E and O modifiers.
git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@14931 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: time_strftime.c,v 1.10 2005-05-07 13:21:49 obarthel Exp $
|
||||
* $Id: time_strftime.c,v 1.11 2005-05-07 13:40:19 obarthel Exp $
|
||||
*
|
||||
* :ts=4
|
||||
*
|
||||
@ -125,6 +125,11 @@ format_date(const char *format,const struct tm *tm,struct Hook * hook)
|
||||
/* OK, what kind of format is expected? */
|
||||
c = (*format++);
|
||||
|
||||
/* For C99, check if the 'E' or 'O' modifiers are present. If so,
|
||||
skip them for now. */
|
||||
if(c == 'E' || c == 'O')
|
||||
c = (*format++);
|
||||
|
||||
/* We stop if the string ends here. Hm... should this count as an error? */
|
||||
if(c == '\0')
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user