トップページ > キーワード検索 > toupper()
C言語規格
C言語(その他)
プログラム
その他
toupper()
機能 英小文字を英大文字に変換することを表す。
指定された文字が英小文字で無い場合は変換せずに返す。
定義 #include <ctype.h>

int toupper ( int c );
引数
c変換する文字
戻り値 変換した文字を返す。
実装例
#include <ctype.h>
#include <stdio.h>

int main(void)
{
    printf("%c\n", toupper('a'));
    
    return 0;
}
実行結果
A





inserted by FC2 system