This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: String functions: strupr & strlwr
- To: pfrancq at ulb dot ac dot be
- Subject: Re: String functions: strupr & strlwr
- From: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Date: Sat, 1 Jan 2000 18:52:02 +0100
- CC: gcc at gcc dot gnu dot org
- References: <99123018105600.18236@mecapp97.ulb.ac.be>
> I can't find the functions "strupr" and "strlwr" to transform a string in
> upper- and lowercase.
This is not really a compiler problem; it would depend on the C
library you are using. If you have an ANSI C library, you should find
the toupper and tolower functions in <ctype.h>. You'd then have to
define strupr and strlwr based on that - these functions are not part
of ANSI C (in fact, this is the first time I heard of them at all).
Regards,
Martin