delorie.com/archives/browse.cgi | search |
From: | Charles Sandmann <sandmann AT clio DOT rice DOT edu> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: I need snprintf |
Date: | Mon, 06 Jan 2003 14:01:20 CST |
Organization: | Rice University, Houston TX |
Lines: | 15 |
Message-ID: | <3e19e090.sandmann@clio.rice.edu> |
References: | <oe2j1vks3m8vaqiav2f0qh3idl89e57e0t AT 4ax DOT com> |
NNTP-Posting-Host: | clio.rice.edu |
X-Trace: | joe.rice.edu 1041883426 12005 128.42.105.3 (6 Jan 2003 20:03:46 GMT) |
X-Complaints-To: | abuse AT rice DOT edu |
NNTP-Posting-Date: | 6 Jan 2003 20:03:46 GMT |
X-NewsEditor: | ED-1.5.9 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
> for compiling a certain program I need support for the snprintf > function. I saw that it isn't yet included in the current djgpp release > but it is included in the development version on cvs. I'll suggest trying the following define at the top of the source file needing snprintf: #define snprintf(a,b,c,d) sprintf(a,c,d) You will need to examine the source to see if the code is writing partial strings or just using the new form for better programming reasons (to control buffer overflows). But so far in all cases I've encountered this has been a simple fix (and works on old unix systems which don't have it either).
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |