Answers for "take out last char in astring in c"

C
4

c remove last character from a string

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

how to check where the last char is in a string c

strlen(str);
Posted by: Guest on June-01-2020

Code answers related to "take out last char in astring in c"

Code answers related to "C"

Browse Popular Code Answers by Language