Update Updated scanner.c

Got it to compile