Date: Sat, 29 Apr 2000 10:19:40 +0200 From: Egon Eckert To: djgpp AT delorie DOT com Subject: Re: Weird : Segmentation fault on fwrite :( Message-ID: <20000429101940.A22474@chance.cz> References: <956963090 DOT 719428 AT romulus DOT infonie DOT fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii User-Agent: Mutt/1.0.1i In-Reply-To: <956963090.719428@romulus.infonie.fr>; from mwa.p@infonie.fr on Sat, Apr 29, 2000 at 01:01:33AM +0200 Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > fwrite(&TestBuff,sizeof(char),32,output); This is wrong. Try fwrite(TestBuff,sizeof(char),32,output); (without the '&'). Egon Eckert