|
From: | Paolo Bonzini |
Subject: | Re: AC_PROG_CC fails when target C library is missing fopen |
Date: | Fri, 07 Aug 2009 13:51:51 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1b3pre) Gecko/20090513 Fedora/3.0-2.3.beta2.fc11 Lightning/1.0pre Thunderbird/3.0b2 |
On 08/07/2009 01:27 PM, Adam Sampson wrote:
On Fri, Aug 07, 2009 at 12:58:13PM +0200, Paolo Bonzini wrote:Can you suggest a replacement? Would atoi be okay?atoi certainly exists in avr-libc, so that'd be OK for me. (Doesn't it use fopen because it wants to see if the file exists afterwards, though?)
Yes, I was thinking of "return atoi(argv[1]);" and check the exit status. Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |