c remove last character from a string
snippet in c
c remove last character from a string
user4791
#include <string.h>
str[strlen(str)-1] = '\0';