Second version of input code

Uses a void and char*