| delorie.com/archives/browse.cgi | search |
| 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: | <nQgAZIAVUODzEwI3 AT jenkinsdavid DOT demon DOT co DOT uk> <lPKw+OA9XRDzEwY5 AT jenkinsdavid DOT demon DOT co DOT uk> <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 <gfoot AT mc31 DOT merton DOT ox DOT ac DOT uk> Merton College, Oxford.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |