機能 |
英小文字を英大文字に変換することを表す。 指定された文字が英小文字で無い場合は変換せずに返す。 |
||
---|---|---|---|
定義 |
#include <ctype.h> int toupper ( int c ); |
||
引数 |
|
||
戻り値 |
変換した文字を返す。 |
||
実装例 |
#include <ctype.h> #include <stdio.h> int main(void) { printf("%c\n", toupper('a')); return 0; } |
||
実行結果 |
A |
toupper()