I am having a lot of trouble copying a double value 'x_pos' into a char array 'x_position_string'. I have been trying to use sprintf but i am getting an error in Output.c. Output.c IS NOT MY CODE.
This is the line with the error in Output.c
int hexadd=0; /* offset to add to number to get 'a'..'f' */
I usually use a template function with a stringstream to do this but you'll have to wait for the experts opinions on the advantages/drawbacks compared to sprintf as I have no idea