Re: C struct
- Posted by Evan Marshall <evan at net-link.net> Jun 17, 2002
- 405 views
<html> <head> </head> <body> *parm[MAXP] is an array of pointers with MAXP elements. The [] has precendence over *<br> <br> Derek Parnell wrote:<br> <blockquote type="cite" cite="mid:0.1700008810.319761465-1463792126-1024361351 at topica.com"> <pre wrap="">-----Original Message-----<br>From: Derek Parnell <br>Sent: Tuesday, 18 June 2002 10:37<br>To: EUforum<br>Subject: RE: C struct<br><br><br><br> node_parm = allot(Ptr), -- struct node *parm[MAXP] means <br>a pointer to an array of MAXP node structures.<br></pre> </blockquote> <pre wrap=""><!----><br>Or am I wrong with this one? Maybe it should be ...<br><br> node_parm = allot({MAXP, Ptr}), <br><br>I'm unsure now if <br> struct node *parm[MAXP] <br>means a single pointer to MAXP node structures<br><br>or MAXP pointers to node structures.<br><br>Sorry. But I don't have a C manual handy at the moment.<br><br><br>-----------<br>Derek.<br><br>==================================================================<br>De informatie opgenomen in dit bericht kan vertrouwelijk zijn en <br>is uitsluitend bestemd voor de geadresseerde. Indien u dit bericht <br>onterecht ontvangt wordt u verzocht de inhoud niet te gebruiken en <br>de afzender direct te informeren door het bericht te retourneren. <br>==================================================================<br>The information contained in this message may be confidential <br>and is intended to be exclusively for the addressee. Should you <br>receive this message unintentionally, please do not use th