Remove N From String C

[Solved] Remove N From String C | Vb - Code Explorer | yomemimo.com
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

Answers related to remove n from string c

Code Explorer Popular Question For Vb