size_t

Doug Gwyn gwyn at smoke.BRL.MIL
Wed Jun 28 14:52:36 AEST 1989


In article <GEOFF.89Jun21011005 at onyx.cs.warwick.ac.uk> geoff at cs.warwick.ac.uk (Geoff Rimmer) writes:
>Does this mean that size_t should be a #define rather than a typedef?

No, size_t must be a genuine type name.

>If it were a typedef, and I #include <stdio.h> AND <stdlib.h> (which
>is a perfectly reasonable thing to do!), I would get errors.

It is the implementor's job to make sure that there is no such problem.
I think it makes an interesting exercise to figure out how this can be
implemented.



More information about the Comp.std.c mailing list