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

0

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. https://code.sololearn.com/cfNw84teU6nc

4/16/2022 11:11:17 PM

William Owens

1 Answer

New Answer

0

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