ro*********@gmail.com wrote:
I got an integer what I trying to use with allegro function
textout_ex() but it wants an char[]/char* as arg... And I really don't
know how to cast it to one...
Why feed an int to a function requiring a char*? Do you really want to
pass an integer, or have you confused a character representing a number
with the number itself?
For example, int a = 7 and char a = '7' are very different objects.
There is a difference between the number seven and the character '7'.
I suggest you do not cast an integer to a char*; instead use the integer
to create a char* that is the character representing that number. Look
up ASCII on wikipedia and you'll see the standard numerical
representations for each standard ASCII character. You'll soon see the
link between a number and the numerical code that indicates the
character representing that number in the ASCII character set.
'Chops