Answers for "how to get rid of the last characters of a string in c"

C
2

c remove last character from a string

#include <string.h>
str[strlen(str)-1] = '\0';
Posted by: Guest on December-07-2020
0

c remove last charachter from string

str[strlen(str)-1] = '\0';
test2
Posted by: Guest on January-02-2022

Code answers related to "how to get rid of the last characters of a string in c"

Code answers related to "C"

Browse Popular Code Answers by Language