○全角文字の扱い
#include <stdlib.h>
#include <locale.h>
------------------------------------------------------------------
char*str="1aAあい";
setlocale(LC_ALL,"");
wchar_t wbuff[10];
mbstowcs(wbuff,str,10);//char→wcharに変換
for(int i=0;wbuff[i]!='\0';i++){
char buff[3]="";
wctomb(buff,wbuff[i]);//wchar→charに変換
OutputDebugString(buff);
OutputDebugString("\n\0");
}
------------------------------------------------------------------
結果
1
a
A
あ
い