hi, i am writing a program in c in which i want to ask user for an input. but i want to discard all the input characters that are preceding by a space. i know you can use getchar() in a while loop somehow but cant quite get it. any help is appreciated
please help.

thanks