converts an upper case letter into a lower case letter, and leaves lower case letter unchanged: - C Function

C examples for Function:Utility Function

Description

converts an upper case letter into a lower case letter, and leaves lower case letter unchanged:

int lower(int ch)
{
  if (ch >= 'A' && ch <= 'Z')
    return ch + 'a' - 'A';
  else
    return ch;
}

Related Tutorials