Posts by user96233 • 21 points
1 post
-
2
votes1
answer161
viewsQ: Problem with malloc in C when creating string concatenation function
char *ft_concat_params(int argc, char **argv) { int index; int aux2; char **newString = argv; aux2 = 0; while (argv[aux2] != '\0') { index = ft_strlen(argv[aux2]); newString[aux2] = (char *) malloc…