Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com From: ericblake AT comcast DOT net (Eric Blake) To: cygwin AT cygwin DOT com Subject: Re: problem with strtoimax? Date: Tue, 05 Jul 2005 21:51:10 +0000 Message-Id: <070520052151.23268.42CB00CE0002CAE700005AE422007348300A050E040D0C079D0A@comcast.net> X-Authenticated-Sender: ZXJpY2JsYWtlQGNvbWNhc3QubmV0 > >$ cat > foo.c > >#include > >#include > > > >int main(int argc, char**argv) > >{ > > printf("%llx\n", strtoll("1", NULL, 10)); > > return 0; > >} > >$ gcc -o foo foo.c > >$ ./foo > >a00000001 > > This, I can confirm. PTC. > No patch necessary (PEBCAK). strtoimax is in inttypes.h, but strtoll is in stdlib.h. Compiling with -Wall would have shown my stupidity. (Hint - implicit prototypes return int, but strtoll really needs to return long long.) -- Eric Blake -- 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/