Question on ANSI-C "typedefs"
Steven Magnani
magnani at frith.uucp
Fri Apr 6 07:16:01 AEST 1990
Hello, net -- it's been awhile, but I'm back.
A question.
Is it legal in ANSI-C to make the following statement:
typedef char FOO_TYPE[size_of_foo];
If so, what is the resulting type of the declaration
FOO_TYPE thing[size_of_thing];
...and the function
FOO_TYPE *some_func(void);
I am somewhat confused -- my reading of the K&R draft-'C' standard is
that a typedef construction such as above is illegal. However, the book
"Programming in 'C'" by Kochan gives an example of such a declaration.
We are having problems with our Microsoft-'C' compiler (V5.0) gagging on
statements related to these, so any help is much appreciated!
adTHANKSvance,
Steve
--
Steven J. Magnani "I claim this network for MARS!
Earthling, return my space modulator!"
With a domain server: magnani at frith.egr.msu.edu
More information about the Comp.lang.c
mailing list