From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17092 invoked by alias); 6 Sep 2004 13:12:05 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 16852 invoked from network); 6 Sep 2004 13:11:44 -0000 Received: from unknown (HELO mail.uni-magdeburg.de) (141.44.1.10) by sourceware.org with SMTP; 6 Sep 2004 13:11:44 -0000 Received: from sunny.urz.uni-magdeburg.de ([141.44.8.7]) by mail.uni-magdeburg.de with esmtp (EXIM Version 4.41) for id 1C4JHF-0007DE-0s; Mon, 06 Sep 2004 15:11:40 +0200 Received: from connect5.urz.uni-magdeburg.de (IDENT:lQePZRmQ7wHoCDbmgm+83oU2NRLXsGEj@connect5.URZ.Uni-Magdeburg.DE [141.44.11.6]) by sunny.urz.uni-magdeburg.de (8.12.10/8.12.10) with ESMTP id i86DAscZ026942 for ; Mon, 6 Sep 2004 15:10:54 +0200 Received: (from bley@localhost) by connect5.urz.uni-magdeburg.de (8.11.6/8.11.6) id i86DAsg07327 for gcc-help@gcc.gnu.org; Mon, 6 Sep 2004 15:10:54 +0200 Date: Mon, 06 Sep 2004 13:12:00 -0000 From: Claudio Bley To: gcc Subject: Re: complex variable Message-ID: <20040906131053.GB6312@connect5.urz.uni-magdeburg.de> Mail-Followup-To: Claudio Bley , gcc References: <20040906.143802.63132483.ppercot@free.fr> <20040906124758.68435.qmail@web52905.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040906124758.68435.qmail@web52905.mail.yahoo.com> User-Agent: Mutt/1.4.2.1i X-Spam-Score: -4.9 (----) X-Spam-Report: ---- Start SpamAssassin results -4.9 points, 5.0 required; -4.9 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] ---- End of SpamAssassin results X-Scan-Signature: 16afc144d3793e22b030786af01a4c2a X-SW-Source: 2004-09/txt/msg00037.txt.bz2 On Mon, Sep 06, 2004 at 01:47:58PM +0100, Ankit Jain wrote: > "fread and fwrite return the number of items > successfully read " > well i am reading 32 complex neumbers... No, you're reading 32*16 == 512 elements (i.e. complex numbers) each 16 bytes in size. Try: if(fread(in,sizeof(complex),32,fp) != 32) HTH Claudio