X-Spam-Check-By: sourceware.org
Message-ID: <4656DBF6.6040302@byu.net>
Date: Fri, 25 May 2007 06:52:06 -0600
From: Eric Blake <ebb9@byu.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.10) Gecko/20070221 Thunderbird/1.5.0.10 Mnenhy/0.7.5.666
MIME-Version: 1.0
To: cygwin@cygwin.com, oceanare@pacific.net.sg
Subject: Re: _ultoa
References: <4656D8C7.4070002@pacific.net.sg>
In-Reply-To: <4656D8C7.4070002@pacific.net.sg>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Erich Dollansky on 5/25/2007 6:38 AM:
> Hi,
> 
> I try to find the function _ultoa to convert some numbers.

No standard specifies _ultoa, so it's use is inherently non-portable.
Cygwin is under no obligation to provide it, so it doesn't.

> 
> This all seems to me like a very stupid error of mine where I simply
> cannot see the jungle because of the many trees around.

Why not use a standard's-compliant method instead:

snprintf(yourbuf, yourbufsize, "%lu", (unsigned long) yourvalue);

- --
Don't work too hard, make some time for fun as well!

Eric Blake             ebb9@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGVtv284KuGfSFAYARAjn0AKCm96+n5LPEtoyU03zpv15YS+iJcwCfdh/O
drVQwgXQjXnUl0iFZTPnHDM=
=ZsBs
-----END PGP SIGNATURE-----

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

