Answers for "c characters for delete"

C
0

how to remove n from a string c

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

remove first character from string c

if (contents[0] == 'n') 
    memmove(contents, contents+1, strlen(contents));
Posted by: Guest on November-18-2020

Code answers related to "C"

Browse Popular Code Answers by Language