This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: _ultoa


-----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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]