16 s[2] =
'0' + (x % 10); x /= 10;
17 s[1] =
'0' + (x % 10);
22 s[2] =
'0' + (x % 10); x /= 10;
23 s[1] =
'0' + (x % 10);
28 s[2] =
'0' + (x % 10); x /= 10;
29 s[1] =
'0' + (x % 10);
34 if (x < 0) { s[1] =
'-'; x = -x; }
else s[1] =
'+';
36 s[5] =
'0' + (x % 10); x /= 10;
37 s[4] =
'0' + (x % 6); x /= 6;
38 s[3] =
'0' + (x % 10); x /= 10;
39 s[2] =
'0' + (x % 10);
unsigned int caltime_fmt(char *s, struct caltime *ct)
unsigned int caldate_fmt(char *s, struct caldate *cd)