Bit of a noob question this. I am using a library which has this function: int TextAdd(int x, int y, char *text, int font);
I need to use this function to display a score. I have the variable int score
and I would like to put it into that function in the style "Score: <variable>"
at char *text
, but I have no idea how to do this. Please can somebody show me how to convert int to char * and add letters to it?
Thanks :)
Mark