Question : how to remove \n from a string c
Answered by : thegreenoak
str[strcspn(str, "\n")] = 0;
Source : https://stackoverflow.com/questions/2693776/removing-trailing-newline-character-from-fgets-input | Last Update : Tue, 09 Jun 20
Question : remove \n from string c
Answered by : christian-lehnert
strtok(Name, "\n");
Source : https://stackoverflow.com/questions/2693776/removing-trailing-newline-character-from-fgets-input | Last Update : Tue, 19 Jan 21