Bug in wimp.h

David Bryan D.J.Bryan at cranfield.ac.uk
Tue Aug 8 17:26:13 BST 2000


Chris Rutter wrote:

> On Tue, 08 Aug 2000 15:40:26 David Bryan wrote:
> 
> > How about, char name[12], as an aid memoir?  This still doesn't
> > warn of the necessary condition of word alignment.
> 
> Is it meaningful or legal to declare the size of an array in a function
> prototype?  (I didn't think it was.)

Well, the two prototypes

  void f(char *);
  void f(char name[12]);

are semantically equivalent.  The second one is only more
meaningful to the programmer.

-- 
David Bryan




More information about the oslib-user mailing list