delorie.com/archives/browse.cgi | search |
From: | Jack Klein <jackklein AT spamcop DOT net> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: problem with strings and integers |
Message-ID: | <gg0mht0ifh1c05co3120ml076uvg0vdftc@4ax.com> |
References: | <hIBS6.244436$Z2 DOT 2773199 AT nnrp1 DOT uunet DOT ca> <9ferhj$mek$1 AT node21 DOT cwnet DOT roc DOT gblx DOT net> |
X-Newsreader: | Forte Agent 1.8/32.548 |
MIME-Version: | 1.0 |
Lines: | 23 |
Date: | Mon, 04 Jun 2001 03:37:38 GMT |
NNTP-Posting-Host: | 12.84.5.45 |
X-Complaints-To: | abuse AT worldnet DOT att DOT net |
X-Trace: | bgtnsc05-news.ops.worldnet.att.net 991625858 12.84.5.45 (Mon, 04 Jun 2001 03:37:38 GMT) |
NNTP-Posting-Date: | Mon, 04 Jun 2001 03:37:38 GMT |
Organization: | AT&T Worldnet |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
On Sun, 3 Jun 2001 22:26:43 -0400, "Alexei A. Frounze" <dummy_addressee AT hotmail DOT com> wrote in comp.os.msdos.djgpp: > "Steve Reynolds >" <<ireynolds AT odyssey DOT on DOT ca> wrote in message > news:hIBS6.244436$Z2 DOT 2773199 AT nnrp1 DOT uunet DOT ca... > > I'm trying to put an integer into a string because I'm using the allegro > > library function (textout), and that outputs a string into a bitmap and > then > > i blit it onto the screen later. How do i add the variable onto the end of > > the string or put it in a string of its own? > > Perhaps by looking through standard C library you can find things like > itoa() and sprintf(). :) > > Good Luck Minor correction: sprintf() is standard in both C and C++. itoa is not standard in either language, although it is a common extension. So sprintf() for maximum portability. -- Jack Klein Home: http://JK-Technology.Com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |