c - Removing trailing newline character from fgets() input - Stack Overflow
I am trying to get some data from the user and send it to another function in gcc. The code is something like this. printf("Enter your Name: "); if (!(fgets(Name, sizeof Name, stdin ......