I have a function that gets a pointer , and it should then change that pointer to a new one, so void function (char *pointer) { char data[40]; // some calculations //send back respond strcpy(pointer,data); } I have read here that strcpy is a bad practice and that there are replacements(in Arduino? ) : http://stackoverflow.com/questions/12275381/strncpy-vs-sprintf What is the right command to change that pointer argument safely ?
Source: sprint or strcpy in arduino ?
sprint or strcpy in arduino ? was last modified: July 13th, 2017 by