Answers for "remove first and last character from string in c return new string"

3

c remove last character from a string

#include <string.h>
str[strlen(str)-1] = '';
Posted by: Guest on December-07-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 "remove first and last character from string in c return new string"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language