I am trying to use "asprintf" in an arduino sketch. Although this function is in stdc but the compiler still gives me this error:
'asprintf' was not declared in this scope here is my code snippet: asprintf(&cmdBuffer, "move:%s", moves_list->begin);
The function asprintf() is analog of sprintf(3) except that it allocate a string large enough to hold the output including the terminating null byte, and return a pointer to it via the first argument.
Can any one tell if there is a supported function with the same functionality or how I can write a replacement function. I am trying to post some code over to arduino and to maintain support for updates I cant really remove the asprintf function all together.
Any inputs would be helpful