Why have xxx_t typedef names (was Re: Is typedef char BUFFER[20] legal?)
Avery Colter
avery at netcom.COM
Fri Feb 8 06:23:57 AEST 1991
henry at zoo.toronto.edu (Henry Spencer) writes:
>The purpose is the same as the convention of using uppercase for macro
>names: to give the poor programmer a little bit more help in figuring
>out what's going on, and to minimize namespace collisions.
It might be, since these seem to be so widespread, that the standards
committee might have sanctioned certain of these xxx_t types as being
standard parameter or return types of some of the standard library
functions.
In the same way that FILE, a typedef'd structure, is the standard
type for a filename under <stdio.h>
--
Avery Ray Colter {apple|claris}!netcom!avery {decwrl|mips|sgi}!btr!elfcat
(415) 839-4567 "I feel love has got to come on and I want it:
Something big and lovely!" - The B-52s, "Channel Z"
More information about the Comp.lang.c
mailing list