URL
https://opencores.org/ocsvn/or1k/or1k/trunk
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;
|
© copyright 1999-2025
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.