Update scanner.c

added return type to the last methods