comparison src/timeival.c @ 15:f671821d8222

code beautifying; 0 -> \0 if appropriate
author meillo@marmaro.de
date Thu, 06 Nov 2008 09:18:38 +0100
parents 26e34ae9a3e3
children
comparison
equal deleted inserted replaced
14:a8f3424347dc 15:f671821d8222
31 while (*p && isdigit(*p) && (q < buf + 15)) { 31 while (*p && isdigit(*p) && (q < buf + 15)) {
32 *(q++) = *(p++); 32 *(q++) = *(p++);
33 (*pos)++; 33 (*pos)++;
34 } 34 }
35 (*pos)++; 35 (*pos)++;
36 *q = 0; 36 *q = '\0';
37 val = atoi(buf); 37 val = atoi(buf);
38 38
39 /* fall through: */ 39 /* fall through: */
40 switch (*p) { 40 switch (*p) {
41 case 'w': 41 case 'w':