Keil Logo

tolower

Summary
#include <ctype.h>

int tolower (
  int c);   /* character to convert */
Description

The tolower function converts c to a lowercase character. If c is not an alphabetic letter, the tolower function has no effect.

Return Value

The tolower function returns the lowercase equivalent of c.

See Also

_tolower, _toupper, toupper

Example
#include <ctype.h>
#include <stdio.h> /* for printf */

void tst_tolower (void) {
  unsigned char i;

  for (i = 0x20; i < 0x7F; i++) {
    printf ("tolower(%c) = %c\n", i, tolower(i));
  }
}
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.