This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: where `tolower` is implemented when `__OPTIMIZE__` macro is off?
- From: Paul Pluzhnikov <ppluzhnikov at google dot com>
- To: Alex Yursha <alexyursha at gmail dot com>
- Cc: "libc-help at sourceware dot org" <libc-help at sourceware dot org>
- Date: Fri, 30 Sep 2016 23:23:45 -0700
- Subject: Re: where `tolower` is implemented when `__OPTIMIZE__` macro is off?
- Authentication-results: sourceware.org; auth=none
- References: <CACWrwPEYNiM-_+Suws847e3ixnePB0Yx5HfqTA6NKUuCi_Cx9Q@mail.gmail.com> <CACWrwPERzDy3oeDwp-SaivZNLAeweWjOWCfdAF9PpTNhDNr+RQ@mail.gmail.com>
On Fri, Sep 30, 2016 at 11:15 PM, Alex Yursha <alexyursha@gmail.com> wrote:
> I'm looking for the place where `tolower` function is defined in glibc.
Look in ctype/ctype.c:
int
tolower (int c)
{
return c >= -128 && c < 256 ? __ctype_tolower[c] : c;
}
--
Paul Pluzhnikov