Return to clock.c CVS log | Up to [local] / src / usr.bin / tmux |
version 1.5, 2009/11/26 23:13:47 | version 1.6, 2009/12/03 22:50:09 | ||
---|---|---|---|
|
|
||
for (ptr = tim; *ptr != '\0'; ptr++) { | for (ptr = tim; *ptr != '\0'; ptr++) { | ||
if (*ptr >= '0' && *ptr <= '9') | if (*ptr >= '0' && *ptr <= '9') | ||
idx = *ptr - '0'; | idx = *ptr - '0'; | ||
else if (*ptr == ':') | else if (*ptr == ':') | ||
idx = 10; | idx = 10; | ||
else if (*ptr == 'A') | else if (*ptr == 'A') | ||
idx = 11; | idx = 11; | ||
else if (*ptr == 'P') | else if (*ptr == 'P') | ||
idx = 12; | idx = 12; | ||
else if (*ptr == 'M') | else if (*ptr == 'M') | ||
idx = 13; | idx = 13; | ||
else { | else { | ||
x += 6; | x += 6; |