This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: where `tolower` is implemented when `__OPTIMIZE__` macro is off?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]