char (*tp[N])[] ?
18-Aug-93 15:12:53
Sb: #36426-char (*tp[N])[] ?
Fm: Greg Comeau@Comeau Cmptg 72331,3421
To: Vic Wagner 76046,3004
>#define span(x) (sizeof(x)/sizeof(x[0]))
>
>very useful for undimenisoned/initialized arrays.
Just to clarify what Vic means, in addition to the normal
sometype array[somedim];
he's talking about
sometype array[] = { init'ers };
where in this case (ONLY!) the compiler will fill in the [] with the
number of initializers. Hence, by the } in this case, the incomplete
array is completed and hence we can sizeof it.