Mail Archives: djgpp/1998/12/25/17:39:38
Börje Granberg wrote:
>
> Hello!
> My name is Börje and I live in Schweden.
> I have problem with my ex of DJGPP:
> I've been working with DJGPP at home for about 4-5 month and now I
> have
> come to the problem that I dont know how to convert a INT to at CHAR*.
> I want the INT I to become a string so I can add a number, let's say
> '123' to
> the string "Look on page " so it will be "Look on page 123".
you don't have to convert it, but you can. You can convert a number to a
string using itoa(number, string*, radix) (look it up in texinfo)
Or, you can use sprintf, which works just like printf but puts the text
into a string:
sprintf(string,"Look on page %d",number)
- Raw text -