From: gfoot AT mc31 DOT merton DOT ox DOT ac DOT uk (George Foot) Newsgroups: comp.os.msdos.djgpp Subject: Re: Problems with Scanf in Allegro.WAS -Problems with palette. Date: 21 Feb 1997 05:52:29 GMT Organization: Oxford University Lines: 18 Message-ID: <5ejd6t$re7@news.ox.ac.uk> References: <330D5F8C DOT 1B6C AT cs DOT com> NNTP-Posting-Host: mc31.merton.ox.ac.uk To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp I need new glasses :) John M. Aldrich (fighteer AT cs DOT com) wrote: : take your computer with it. Here's a much safer way to do the above: : int x = malloc( ns * sizeof(int) ); : int y = malloc( ns * sizeof(int) ); : int sp = malloc( ns * sizeof(int) ); Don't you mean: int *x = (int *) malloc( ns * sizeof(int) ); etc? -- George Foot Merton College, Oxford.