Date: 04 Aug 2003 08:56:55 +0200 Message-Id: From: Eli Zaretskii To: djgpp AT delorie DOT com In-reply-to: <1sb2cgsjrn9c1.1qat04crl2pqh$.dlg@40tude.net> (message from Quasar on 04 Aug 2003 05:07:36 GMT) Subject: Re: Alternative to fcvt for older DJGPP? References: <76uzeozd7s3g.1sgoajp58hmqa$.dlg AT 40tude DOT net> <1sb2cgsjrn9c1.1qat04crl2pqh$.dlg AT 40tude DOT net> Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > From: Quasar > Newsgroups: comp.os.msdos.djgpp > Date: 04 Aug 2003 05:07:36 GMT > > I thought about doing that, but the fcvt function is very complicated > and makes use of locale facilities and some other, apparently internal, > libc functions. I'd end up copying over several hundred KB of code before > it was done, more than likely. ``Several hundred KB of code'' is an extreme exaggeration: if you look closely at fcvt, you will see that all you need is 3 files: fcvt.c, fcvtbuf.c, and ecvtbuf.c, for a grand total of 4400 bytes. As for localeconv()->decimal_point[0], you could simply replace it with a `.' and be done with that. > Also, I'm on a > very slow internet connection. The last time I dl'd DJGPP, it took the > better part of a day :( You can get only the 3 files in question via the CVSWeb interface to the DJGPP sources. See http://www.delorie.com/djgpp/cvs.html > The program is a DOOM port with over 120,000 lines of code, and requires > an older version of the Allegro library. If that DOOM version requires an older Allegro library, it was probably already ported to DJGPP, and so someone who did that port already found a solution for fcvt, right? So how come you need to reinvent that solution?