Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!tut.cis.ohio-state.edu!purdue!haven!ncifcrf!nlm-mcs!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn) Newsgroups: comp.std.c Subject: Re: Reserved names in ANSI C Message-ID: <10430@smoke.BRL.MIL> Date: 22 Jun 89 08:05:24 GMT References: <13680@haddock.ima.isc.com> <1598@cbnewsh.ATT.COM> Reply-To: gwyn@brl.arpa (Doug Gwyn) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 14 In article <1598@cbnewsh.ATT.COM> ka@hulk.att.com writes: >I know that ANSI C reserves all names that begin with and underscore, >and I just learned from the above quote that it reserves all names >beginning with "str". Are there other names to be avoided as well? Not all names beginning with underscore are reserved; for example, applications may use structure members named e.g. _hidden. Similarly, it is only external names for which the str prefix is reserved (for future standardization). There are several name spaces in C, and reserved names usually are restricted to a subset of the totality of name spaces. A complete list should be given in any book proclaiming "ANSI C" on its cover, of which there are several.