I am trying to run the following code using allegro.
textout_ex (screen, font, numbComments, 100, 100, GREEN, BLACK);
numbComments is an integer, the prototype of the function of this function is
void textout_ex(BITMAP *bmp, const FONT *f, const char *s,
int x, int y, int color, int bg);
and I cannot, according to my understanding, transfer this integer to the third position.
So I need to convert an integer to char * s.
Help me please?
I cannot, of course, change the prototype of the actual function
source
share