I use fgets() to read a string, but don't want to pertain the newline charcter. In the old days, I used flushall(), but that doesn't seem to be valid either. What do I do here?

Seems like checking the last char for '\n' and replacing it with '\0' is the way to go.

Thank you very much for your help :-)

Stefan
_______________________________________________
help-gplusplus mailing list
help-gplusplus@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gplusplus

Reply via email to