home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!munnari.oz.au!bruce.cs.monash.edu.au!monu6!yoyo.cc.monash.edu.au!bena
- From: bena@yoyo.cc.monash.edu.au (Ben Aveling)
- Subject: Re: Macros
- Message-ID: <1992Nov10.003412.14752@monu6.cc.monash.edu.au>
- Sender: news@monu6.cc.monash.edu.au (Usenet system)
- Organization: Monash University General Access Unix
- X-Newsreader: TIN [version 1.1 PL6]
- References: <1dfs04INNg3e@usenet.INS.CWRU.Edu>
- Date: Tue, 10 Nov 1992 00:34:12 GMT
- Lines: 11
-
- William C. Thompson (wct@po.CWRU.Edu) wrote:
-
- : if (((A)=(double **)malloc(sizeof(double *)*(rows)))==NULL)
- : printf("Allocation error!\n");
- : for (i=0; i<(cols); i++)
- ^^^^
- : if (((A)[i]=(double *)malloc(sizeof(double)*(cols)))==NULL)
-
- Shouldn't that be rows ?
-
- Ben :-)
-