企业网站.net,工业信息化部网站备案,视觉设计专业,教学管理信息服务平台文章目录 函数说明函数声明函数返回值函数实现函数实例 函数说明
对于大写字母#xff0c;如果在当前语言环境中存在小写表示形式#xff0c;则tolower()返回其小写等效物。否则#xff0c;tolower()函数执行相同的任务。 函数声明
#include ctype.h
int tolower(… 文章目录 函数说明函数声明函数返回值函数实现函数实例 函数说明
对于大写字母如果在当前语言环境中存在小写表示形式则tolower()返回其小写等效物。否则tolower()函数执行相同的任务。 函数声明
#include ctype.h
int tolower(int c);函数返回值
返回的值是转换后的字母如果不能转换则返回输入的字符。 函数实现
#define __C_tolower(c) (__C_isupper(c) ? ((c) | 0x20) : (c))int tolower(int c)
{return __C_tolower(c);
}函数实例
#include stdio.h
#include ctype.hint main()
{int i 0;char *str ASEDyyds;while(str[i]){printf(%c,tolower(*(stri)));i;}printf(\n);return 0;
}输出
asedyyds