Newsgroups: comp.os.minix
Subject: Re: "(warning) old-fashioned function definition"
References: <5fdf14af.0107011533.be62270@posting.google.com> <slrn9k03iu.go1.pino+comp_os_minix@mud.stack.nl> <%%%%6.20037$C81.1577180@bgtnsc04-news.ops.worldnet.att.net> <l26qh9.69.ln@nnews.ath.cx>
Organization: Syracuse University, Syracuse
From: mcconnel@hydra.syr.edu (Terry R. McConnell)
NNTP-Posting-Host: hydra.syr.edu
Message-ID: <3b40a47c.0@news.syr.edu>
Date: 2 Jul 2001 12:42:36 -0500
X-Trace: 2 Jul 2001 12:42:36 -0500, hydra.syr.edu
Lines: 19
Path: news.adfa.edu.au!clarion.carno.net.au!news0.optus.net.au!news1.optus.net.au!optus!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.syr.edu!hydra.syr.edu!mcconnel
Xref: news.adfa.edu.au comp.os.minix:37748

In article <l26qh9.69.ln@nnews.ath.cx>, Paul <paul@mmail.ath.cx> wrote:
>> int mapfill(FILE *mapfile, char (*map)[25]);
>
>Can someone explain "char (*map)[25]"?
>
>Is it "a array of 25 pointers to function which returns char"?
>Or is it " ((char *) map)[25]"  "a array of 25 pointers to char" ?
>This is very confusing when precendence table alone can't tell you.....
>
>

map is a pointer to an array of 25 chars.
An array of 25 pointers to chars would be char *map[25].

-- 
************************************************************************
Terry R. McConnell   Mathematics/304B Carnegie/Syracuse, N.Y. 13244-1150
trmcconn@syr.edu     http://barnyard.syr.edu/~tmc    Question Authority?
************************************************************************
