www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/07/04/22:13:12

Message-ID: <00bc01bda7b9$bb8cd800$ea023ace@alpha>
From: "Brian Bacon" <kyberteknik AT geocities DOT com>
To: <djgpp AT delorie DOT com>
Subject: Re: Integer or Byte to string function in DJGpp
Date: Sat, 4 Jul 1998 19:07:53 -0700
MIME-Version: 1.0

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019