OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [branches/] [newlib/] [newlib/] [newlib/] [libc/] [time/] [strftime.c] - Diff between revs 39 and 56

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 39 Rev 56
Line 402... Line 402...
            return 0;
            return 0;
          break;
          break;
        case 'y':
        case 'y':
          if (count < maxsize - 2)
          if (count < maxsize - 2)
            {
            {
 
              /* The year could be greater than 100, so we need the value
 
                 modulo 100.  The year could be negative, so we need to
 
                 correct for a possible negative remainder.  */
              sprintf (&s[count], "%2.2d",
              sprintf (&s[count], "%2.2d",
                       tim_p->tm_year);
                       (tim_p->tm_year % 100 + 100) % 100);
              count += 2;
              count += 2;
            }
            }
          else
          else
            return 0;
            return 0;
          break;
          break;

powered by: WebSVN 2.1.0

© copyright 1999-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.