Mail Archives: djgpp/1998/07/04/22:13:12
Simple...
int index;
char buf[12]; // bigger number to add paths & stuff of course
for(index=0; index<TOTAL_TGAS; index++)
{
sprintf(buf, "land%d.tga", index);
load_the_tga(buf); // or whatever you use
}
Hows that?
TTYL -Brian
-----Original Message-----
From: Oliver Batchelor <batch AT netaccess DOT co DOT nz>
Newsgroups: comp.os.msdos.djgpp
To: djgpp AT delorie DOT com <djgpp AT delorie DOT com>
Date: Saturday, July 04, 1998 6:30 PM
Subject: Integer or Byte to string function in DJGpp
>Can anyone tell me of a quick function to convert integers or bytes to
>strings.
>
>I will use this to load files called land1.tga up to land50.tga and still
>growing larger possibly up to 200. This will save me typing the loadtga
>procedure out 200 times with different names in the string !!!
>
- Raw text -