Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!wuarchive!udel!haven!adm!smoke!gwyn From: gwyn@smoke.brl.mil (Doug Gwyn) Newsgroups: comp.lang.c Subject: Re: Why have xxx_t typedef names Message-ID: <15031@smoke.brl.mil> Date: 31 Jan 91 18:51:59 GMT References: <1212@tredysvr.Tredydev.Unisys.COM> <1991Jan29.210100.8105@zoo.toronto.edu> Organization: U.S. Army Ballistic Research Laboratory, APG, MD. Lines: 16 In article bevan@cs.man.ac.uk (Stephen J Bevan) writes: >What is the purpose of the "_t" ... etc. postfixes ? >It obviously makes any variables defined by a typedef'd type very >clear, but is that important? I think not. Some people find it helpful, others don't. The primary legitimate reason for this convention is to ensure that type names do not collide with other uses of identifiers. Unfortunately, systems that have (e.g. POSIX ones) generally allow the inclusion of to define a large number of nonstandard type names, so that in a program including that header it is in fact UNWISE for the application itself to define its own names of the form *_t. This is yet another aspect of the "name space pollution" issue, brought somewhat under control by X3J11 and to a lesser extent by P1003(.1), but still a real problem for C applications.