Input getline \n | Sololearn: Learn to code for FREE!


Input getline \n

Using getline() the newline char is stored in the buffer. Does anyone know a way to discard the newline char with getline(). getdelim will not work per the man pages. Here is my example of using getline.

4/16/2022 11:11:17 PM

William Owens

1 Answer

New Answer


Think I have fixed the newline from the getline().