Reserved names in ANSI C

Dave Decot decot at hpisod2.HP.COM
Thu Jun 22 07:44:59 AEST 1989


> Yes. From reading section 4.13:
> 
> 	E[0-9A-Z].*     macros in errno.h
> 	is[a-z].*       externals, ctype.h
> 	to[a-z].*       externals, ctype.h
> 	LC_[A-Z].*      macros in locale.h
> 	<func>f         <func> is any function defined in math.h
> 	<func>l         <func> is any function defined in math.h
> 	SIG[A-Z].*      macros in signal.h
> 	SIG_[A-Z].*     macros in signal.h
> 	str[a-z].*      externals, stdlib.h and string.h
> 	mem[a-z].*      externals, string.h
> 	wcs[a-z].*      externals, string.h

These do not really benefit the implementation either, because the (draft)
standard requires so many other things to be hidden from the application's
namespace the extra effort to hide such names is less than that of documenting
that the application can't use them.

Sigh.

Dave



More information about the Comp.std.c mailing list