im trying to change a part of a string using another pointer. what I have
char** string = (char**) malloc (sizeof(char*));
*string = (char*) malloc (100);
*string = "trololol";
char* stringP = *string;
stringP += 3;
stringP = "ABC";
printf("original string : %s\n\n", *string);
printf("stringP : %s\n\n", stringP);
What I get
original string : trololol;
stringP : ABC;
what I whant is troABCol in both of them :D
I know I have a pointer to a string (char**) because thats what I need in order to do this operation inside a method.
strcpy()ormemmove()or their various relatives.