Let\'s say I have a program that takes an input through a function called getline, which works like a while loop where you use getchar() function and add characters to a str