2023-01-09 3:49 PM
I have assigned the string into the char array as "example\n". How do I put the "\n" character in front of the "example\n". I wanted like this "\nexample\n" on the char array
2023-01-09 6:56 PM
#include "string.h"
memmove(str[0]+1, str[0], strlen(str[0]));
str[0][0] = '\n';
We’re moving the ST Community to a new platform to give you a better and more reliable community experience.