blob: 76790a6592c31a69e8144a21669cab425e0ec760 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
/* { dg-do compile } */
void _mktm_r (long lcltime, int *res)
{
long rem = lcltime % ((60L * 60L) * 24L);
if (rem < 0)
return;
while (rem >= ((60L * 60L) * 24L))
rem -= ((60L * 60L) * 24L);
*res = (int) (rem % 60L);
}
|