Guest User

Untitled

a guest
Jan 21st, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.19 KB | None | 0 0
  1. while (c = getchar() != EOF)
  2. {
  3.     switch (current_state)
  4.     {
  5.         case STATE_NUMBER:
  6.             if (isdigit(c))
  7.                 buffer[i++] = c;
  8.                 continue;
  9.             else
  10.                 current_state = state_decide(c);
  11.     }
  12. }
Add Comment
Please, Sign In to add comment