SHARE
TWEET

Untitled

a guest Jul 18th, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. mini parsing(char *input)
  2. {
  3.     // 17:55 * CAR1
  4.     long h, m;
  5.     mini c;
  6.     c.time = -1;
  7.     c.st = '!';
  8.     h = strtol(input, &input, 10);
  9.     if (*input != ':')
  10.         return c;
  11.     ++input;
  12.     m = strtol(input, &input, 10);
  13.     c.time = h*60 + m;
  14.     ++input;
  15.     c.st = *input;
  16.     return c;
  17. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top