C语言函数:toupper
来源:互联网 发布:阿里云9.9半年主机 编辑:程序博客网 时间:2024/06/03 19:43
原型:extern int toupper(int c);
用法:#include <ctype.h>
功能:将字符c转换为大写英文字母
说明:如果c为小写英文字母,则返回对应的大写字母;否则返回原来的值。
举例:
#include <syslib.h> #include <ctype.h> main() { char *s="Hello, World!"; int i; clrscr(); // clear screen printf("%s\n",s); for(i=0;i<strlen(s);i++) { putchar(toupper(s[i])); } getchar(); return 0; }
同理有函数tolower
- C语言函数:toupper
- C语言toupper()函数:将小写字母转换为大写字母
- toupper ( )【C语言库函数源代码】
- C语言tolower和toupper的用法
- c库函数之二 - toupper函数
- toupper() 函数
- toupper函数
- toupper函数
- toupper()函数
- toupper()函数
- toupper.c
- tolower函数toupper函数
- string toupper函数
- C语音 大小写字符转换函数tolower函数和toupper函数
- toupper
- toupper()
- toupper
- toupper
- NetBIOS、Samba、CIFS概念及相关
- linux-UDP
- java编码 乱码解析
- struts2中json应用
- 托福考试总结——南京师范大学考点
- C语言函数:toupper
- c++ stl library 学习(4)
- WebView总结
- Android Lint Checks
- Flex走出低谷的关键: 打破Flex固有的定义
- C# 中利用 DirectSound 录音
- HTML <base> 标签的 href 属性
- 表驱动法介绍
- 用泛型与反射技术封装分页功能(JPA)