toupper : 将字符转换为大写
#include <ctype.h>int toupper(int c);int _toupper(int c);```### 描述
toupper 是一个宏,用于将小写字符转换为大写字符,而所有其他字符保持不变。它仅在 c 是 EOF 到 255 范围内的整数时才有定义。
通过使用 `#undef toupper' 取消该宏的定义,可以使用编译后的子例程来代替宏定义。
_toupper 执行与 toupper 相同的转换,但应仅在已知 c 为小写字符 (a--z) 时使用。### 返回值
当 c 是 a 到 z 之间的字符时,toupper 返回 c 的大写等效字符,否则返回 c。
当 c 是 a 到 z 之间的字符时,_toupper 返回 c 的大写等效字符。如果 c 不是这些字符之一,则 _toupper 的行为是未定义的。
---
**权威来源**: BUSMASTER DITA help source `toupper.dita`, compiled into `BUSMASTER.CHM` with the application.