From: aho450s AT nic DOT smsu DOT edu (Tony O'Bryan) Newsgroups: comp.os.msdos.djgpp Subject: Re: malloc help Date: Mon, 03 Mar 1997 14:30:23 GMT Organization: Southwest Missouri State University Lines: 7 Message-ID: <331ae03c.4561619@ursa.smsu.edu> References: <5fed5n$qtp AT oban DOT cc DOT ic DOT ac DOT uk> NNTP-Posting-Host: forseti.i13.smsu.edu To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp On 3 Mar 1997 11:37:27 GMT, ps13 AT gauss DOT ma DOT ic DOT ac DOT uk (Mr P. Steele) wrote: >if(!(image->buffer = (char *)malloc(SCREEN_WIDTH * SCREEN_HEIGHT + 1))); > > printf("Could not allocate screen buffer."); Try removing the semi-colon at the of the malloc line.