Forum Discussion
Altera_Forum
Honored Contributor
14 years ago --- Quote Start --- It's another problem, seems like my buffer has already some info on it. I don't type anything and some value appear in the alt_getchar, like 1a, 2b etc. Thanks for your info thought :) --- Quote End --- If your problem is simply with chars already stored in buffer, what you commonly do in C is putting a while (getchar() != EOF); loop before starting. EOF is usually the portable version of the -1 result value suggested by dsl.