wctomb

wctombで、ワイド文字からマルチバイト文字へ変換する。

Man page of WCTOMB

wctomb.cで、

ロケールUTF-8EUC-JPしか入ってないので、その2つに変換する。

実行するとこうなり、
実行するとこうなり、

実行するとこうなり、

test1.txtはUTF-8
test1.txtはUTF-8

test1.txtはUTF-8

test2.txtはEUC-JP。
test2.txtはEUC-JP。

test2.txtはEUC-JP。

Sample/c/wctomb/wctomb/src/wctomb at master · bg1bgst333/Sample · GitHub