How would I be able to reset a pointer to the start of a commandline input or file. For example my function is reading in a line from a file and prints it out using getchar(
Piped / redirected input doesn't work like that. Your options are: