I've read many threads on how to remove a new line character '\n' using fgets()-- however, how would one go about removing a new line character simply by using getchar() ?
dbsp 0 Newbie Poster
zeroliken 79 Nearly a Posting Virtuoso
dbsp 0 Newbie Poster
zeroliken 79 Nearly a Posting Virtuoso
dbsp 0 Newbie Poster
zeroliken 79 Nearly a Posting Virtuoso
dbsp 0 Newbie Poster
zeroliken 79 Nearly a Posting Virtuoso
dbsp 0 Newbie Poster
zeroliken 79 Nearly a Posting Virtuoso
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague
deceptikon 1,790 Code Sniper Team Colleague Featured Poster
zeroliken commented: I wasn't familiar with the first one so thanks for posting +8
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.