delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/02/28/16:03:03

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
X-Authentication-Warning: bono.reversers.net: stefan owned process doing -bs
Date: Mon, 28 Feb 2000 22:04:02 +0100 (CET)
From: stefan <stefan AT linux DOT f1 DOT fhtw-berlin DOT de>
X-Sender: stefan AT bono DOT reversers DOT net
To: Cygwin Mailing List <cygwin AT sourceware DOT cygnus DOT com>
Subject: question about snprintf and vsnprintf
Message-ID: <Pine.LNX.4.10.10002282132050.272-100000@bono.reversers.net>
MIME-Version: 1.0

hello cygwinners,

recently we came across both of the routines mentioned above while porting
some software. Both, snprintf and vsnprintf are not defined in any of the
headers, whether cygwin nor mingw. They should be defined in stdio.h like

int _snprintf(char *str, size_t n, const char *format, ...);
int _vsnprintf(char *buffer,size_t count,const char *format,va_list argptr);

and as all the ctrdll.dll routine there should be a define like

#define snprintf _snprintf
#define vsnprintf _vsnprintf

Both routines can be found within the libcrtdll.a and of course within the
Windows's crtdll.dll. I could not find it in the cygwin1.dll.

I do not a good reason why not to implement it there.

We are using the Win95 Patch "cygwin-inst-19990115.tar.gz" under Windows
95 4.0 and the normal release "Cygwin B20.1" under Windows NT 4.0 build
1381. We solved our problem with it using the -mno-cygwin option and the
mingw32 extra files defining the above thingies.

Was there any reason for this ?
Thanks in advance and maybe this will help you ?

Stefan. 
Please email directly as well, because i did not join the mailing list yet.


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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