char *p, *file = "hoge.xml"; int ok; ok = (p = strrchr(file, '.')) ? !memcmp(p, ".xml", 4) : 0;
下から選んでください: