delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT sources DOT redhat DOT com |
Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
Message-ID: | <397346D0.B906669@comco.com> |
Date: | Mon, 17 Jul 2000 12:48:00 -0500 |
From: | Tadeusz Liszka <tad AT comco DOT com> |
Organization: | Altair Engineering, Inc. |
X-Mailer: | Mozilla 4.07 [en] (X11; U; IRIX 5.3 IP22) |
MIME-Version: | 1.0 |
To: | "Jerome G. Benoit" <jgmbenoit AT wanadoo DOT fr> |
CC: | Cygnus list <cygwin AT sourceware DOT cygnus DOT com> |
Subject: | Re: asprintf |
References: | <396F87B7 DOT E04BBF2A AT wanadoo DOT fr> |
I think you are going wrong way - if you try to build transportable code, you should use only routines in common C libs, and asprintf is not, and certainly _IO_vasprintf is not portable (if it starts with _ it is by definition system dependent). If you cant make sprintf to work (!?!) then your option is to write portable sprintf yourself (or use the one hanging around - download eprintf, or mktclapp, to get very good replacement for it written by Dr. Hipp) http://www.hwaci.com/sw/mktclapp/ Jerome G. Benoit wrote: > > Bonjour > > I have some trouble with `sprintf' (not on Cygnus but elsewhere) > and I want to write transportable codes: > I guess that I can use `asprintf' instead (see GNU Lib C doc). > I did not find `asprintf' in headers distributed with Cygnus > but I found `int _IO_vasprintf ...' in `libioP.h'. > > It is dangerous to use it ? > > Thanks in advance, > Jerome > > -- > Want to unsubscribe from this list? > Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com -- Tadeusz :: The public opinion should be alarmed by its own nonexistence :: (512)467-0618 ext. 526 :: Stanislaw J. Lec, trans. TJL -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |