Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mini parsing(char *input)
- {
- // 17:55 * CAR1
- long h, m;
- mini c;
- c.time = -1;
- c.st = '!';
- h = strtol(input, &input, 10);
- if (*input != ':')
- return c;
- ++input;
- m = strtol(input, &input, 10);
- c.time = h*60 + m;
- ++input;
- c.st = *input;
- return c;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement