| 1 | void readn(register int *n) { |
| 2 | int sign = 1; |
| 3 | register char c; |
| 4 | *n = 0; |
| 5 | while((c = getc_unlocked(stdin)) != '\n') { |
| 6 | switch(c) { |
| 7 | case '-': sign = -1; break; |
| 8 | case ' ': goto hell; |
| 9 | case '\n': goto hell; |
| 10 | default: *n *= 10; *n += c - '0'; break; } } |
| 11 | hell: |
| 12 | *n *= sign; } |
| 13 | // vim: cc=60 ts=2 sts=2 sw=2: |
nothing calls this directly
no outgoing calls
no test coverage detected