extname in c