delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/07/21/12:01:08

From: Sudhir <varma1 AT wam2 DOT umd3 DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: How to convert mode to "pointer to array"?
Date: Fri, 21 Jul 2000 11:47:16 -0400
Organization: University of Maryland College Park
Lines: 10
Message-ID: <39787083.E067BE47@wam2.umd3.edu>
References: <39780BA1 DOT 7354F5D2 AT umist DOT ac DOT uk>
NNTP-Posting-Host: cezanne.isr.umd.edu
Mime-Version: 1.0
X-Trace: hecate.umd.edu 964194436 7260 128.8.111.63 (21 Jul 2000 15:47:16 GMT)
X-Complaints-To: abuse AT wam DOT umd DOT edu
NNTP-Posting-Date: 21 Jul 2000 15:47:16 GMT
X-Mailer: Mozilla 4.7 [en] (X11; U; SunOS 5.6 sun4u)
X-Accept-Language: en
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Anthony Appleyard wrote:

> atom((*C)[N+1][N+1])= /*HERE*/ malloc((N+1)*(N+1)*(N+1)*sizeof(atom));
> make this text ANSI, what should I insert at /*HERE*/ ?

Insert (atom*) with the brackets. That forces a conversion to a pointer
to atom
-- 
-Sudhir
Remove all numbers to reply to email

- Raw text -


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