Path: utzoo!attcan!uunet!taumet!steve From: steve@taumet.com (Stephen Clamage) Newsgroups: comp.lang.c Subject: Re: _tolower and _toupper macros Message-ID: <352@taumet.com> Date: 27 Jul 90 16:46:58 GMT References: <2891@dftsrv.gsfc.nasa.gov> <1990Jul26.100721.14628@warwick.ac.uk> Organization: Taumetric Corporation, San Diego Lines: 13 ANSI defines toupper (tolower) such that it returns a lowercase (uppercase) version of an uppercase (lowercase) argument, and returns all other characters as-is. There is no definition of _toupper or _tolower in ANSI C. The implementation of topper (tolower) must check its parameter to see what it is before converting. Sometimes the programmer knows that such a check is not necessary. Many C implementations provide the _toupper and _tolower macros, which are faster, to use in such cases. Although such macros are not guaranteed to exist on all systems, they are usually easy enough to write if they are not supplied. -- Steve Clamage, TauMetric Corp, steve@taumet.com