cli extname in c