Update scanner.c

Update Completed scanner.c for test!