Im working on hardware interfacing with C and atm using an LCD screen to debug it. The LCD code takes a string and prints it to the LCD. My question is how can I make the string take values in the manner of printf statements?
EG:
int n;
char *str;
n=5;
Id like to do something along the lines of
str=(" this is a string and a number %d, n");
More to the point Im not sure how to save a string with a variable in it.
Thanks for the help.