From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11445 invoked by alias); 30 Sep 2019 13:32:59 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 11435 invoked by uid 89); 30 Sep 2019 13:32:59 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=1.3 required=5.0 tests=BAYES_50,FREEMAIL_FROM,HTML_MESSAGE,KAM_NUMSUBJECT,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.1 spammy=H*r:sk:sonic.g, H*M:yahoo, H*RU:sk:sonic30, dennis X-HELO: sonic309-24.consmr.mail.ir2.yahoo.com Received: from sonic309-24.consmr.mail.ir2.yahoo.com (HELO sonic309-24.consmr.mail.ir2.yahoo.com) (77.238.179.82) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 30 Sep 2019 13:32:58 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.de; s=s2048; t=1569850375; bh=OHtsiMGjDOC0H3pl+zLJq2TdIlYSMiWb8Zc16uUFJZc=; h=Date:From:To:Subject:References:From:Subject; b=APIF0VlHoYAPysUf9+Mkgep3VyC5mmXK7Pd21sxf0wizGvY4nvnOoEG5Fy1RyU7RRP7R3c+KkUGkGMQTpmE+KOuTInAHvVqvKfIo68nue/Zbsc4igIOkvUBsghbd6sfqLZecO0uzFebqfZFxcswBPI+ahUal6jdUu9tmwP23e9fARSJuFLmV9r0F2pAJH0+4f+nJQ+Sn+KjxETbz6MFEn/syvu8k5WJSof5LMBHGcbnhaxFMkH4De80F8eOB3PCsSiDrXPzK6cx8ovHPsr6Ny6iLRp3z/0wQM5LCmAyWQN1YNMstyuYNAdWrlesJRWe4ovEQgUpDXq7b7Swb1zQ/jg== Received: from sonic.gate.mail.ne1.yahoo.com by sonic309.consmr.mail.ir2.yahoo.com with HTTP; Mon, 30 Sep 2019 13:32:55 +0000 Date: Mon, 30 Sep 2019 13:32:00 -0000 From: "rolf perau via gcc-help" Reply-To: rolf perau To: "gcc-help@gcc.gnu.org" Message-ID: <2147124760.1726006.1569850372525@mail.yahoo.com> Subject: Re: gcc on Sparc Solaris 8 MIME-Version: 1.0 References: <2147124760.1726006.1569850372525.ref@mail.yahoo.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-SW-Source: 2019-09/txt/msg00111.txt.bz2 Hi Dennis,=20 int scan_assign_double(ScanFILE *psf, double *pd, void *userdata, ScanFLAG = flags){ =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 char temp[100]; =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 if (scan_nonblank(psf) =3D=3D '= =3D') fgetc(psf->fp); =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 if (scan_word(psf, temp, sizeof(= temp)-1)) return -1; fprintf( stderr, "Reading the String : %s\n", temp); =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 if (sscanf(temp, " %lf ", pd) != =3D 1) { =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 error_out(err_scan_expect_double, temp, psf->filename, psf-= >linum); =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 return -1; =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 } fprintf( stderr, "%s %lf\n\n", "After sscanf %lf :" , *pd); =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 if (scan_nonblank(psf) =3D=3D ';= ') fgetc(psf->fp); =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 return 0; } Resulting in : Reading the String : 0.7 After sscanf %lf : 0,000000 Reading the String : 5257.872067 After sscanf %lf : 5257,000000 Reading the String : 152.498875 After sscanf %lf : 152,000000 Reading the String : 12.0 After sscanf %lf : 12,000000 Reading the String : 0.7 After sscanf %lf : 0,000000