一、#include <ctype.h> |
int isdigit(int c);:如果c是0-9的数字,isdigit会返回一个随机的非零的数(取决于编译器),否则返回0;
int islower(int c);:如果c是介于'a'和'z'之间的小写字母,则会返回一个随机的非零的数(取决于编译器),否则返回0;
int isupper(int c);:如果c是介于'A'和'Z'之间的大写字母,则会返回一个随机的非零的数(取决于编译器),否则返回0;
二、<stdlib.h> and <ctype.h> |
int tolower(int c);:如果c是介于'a'和'z'之间的大写字母,tolower会将其转变为对应的大写字母;
int toupper(int c);:如果c是介于'A'和'Z'之间的大写字母,toupper会将其转变为对应的小写字母;