I have this statement in my Arduino code :
byte blockcontent [16] = itoa(order);
and it gives me an error saying: "Too few arguments to function 'charitoa(int,char,int)'. Even though I've looked for the documentation of itoa function and I found that it accepts one input argument. Can anyone help me fix this error?
1 Answer 1
itoa requires a minimum of 2 arguments.
answered Jan 12, 2017 at 22:48
-
Thank you, but is it possible to set an array pointer instead of character pointer?Raya– Raya2017年01月12日 22:53:00 +00:00Commented Jan 12, 2017 at 22:53
-
You can probably set a char pointer inside an array of char pointer yes if that is what you mean.Andre Courchesne– Andre Courchesne2017年01月12日 22:58:02 +00:00Commented Jan 12, 2017 at 22:58
lang-cpp
char * itoa ( int value, char * str, int base );