delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/04/29/03:43:22

Date: Sat, 29 Apr 2000 10:19:40 +0200
From: Egon Eckert <egon AT chance DOT cz>
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
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

>         fwrite(&TestBuff,sizeof(char),32,output);

This is wrong.  Try

fwrite(TestBuff,sizeof(char),32,output);

(without the '&').

Egon Eckert

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019