Answers for "fgets remove newline"

C
0

how to remove \n from a string c

str[strcspn(str, "\n")] = 0;
Posted by: Guest on June-02-2020
0

fgets remove newline

strtok(in, "\n");
Posted by: Guest on March-01-2021

Code answers related to "C"

Browse Popular Code Answers by Language