.c -> .c
.cpp -> .c
.h -> .c
.pas -> .pas
.inc -> .pas
.dpr -> .pas
.bat -> .bat
.cmd -> .bat
みたいに拡張子を文字列として渡すと代表的?な拡張子が返ってくる関数名お願いします。
例は適当です。