Question : c remove last character from a string
Answered by : fernando-gonzalezmorales
#include <string.h>
str[strlen(str)-1] = '\0';
Source : https://stackoverflow.com/questions/18949552/removing-last-character-in-c/18949575 | Last Update : Mon, 14 Dec 20
Question : string remove last character
Answered by : crowded-cheetah-r5irch97wadz
public static String removeLastCharacter(String str) { String result = null; if ((str != null) && (str.length() > 0)) { result = str.substring(0, str.length() - 1); } return result;
}
Source : https://www.xenovation.com/blog/development/java/remove-last-character-from-string-java | Last Update : Mon, 06 Apr 20
Question : c remove last charachter from string
Answered by : wrong-wolf-dw6dqlwlqfdi
str[strlen(str)-1] = '\0';
test2
Source : https://stackoverflow.com/questions/18949552/removing-last-character-in-c | Last Update : Sun, 09 Jan 22