I have a char array filled with some characters. Let\'s say I have \"HelloWorld\" in my char array. (not string. taking up index of 0 to 9)
What I\'m trying to do is ins
Simply do:
#define SHIFT 1 char bla[32] = "HelloWorld"; // We reserve enough room for this example char *ptr = bla + 5; // pointer to "World" memmove(ptr + SHIFT, ptr, strlen(ptr) + 1); // +1 for the trailing null