概述
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
void get_extension(const char *file_name,char *extension)
{
int i=0,length;
length=strlen(file_name);
while(file_name[i])
{
if(file_name[i]=='.')
break;
i++;
}
if(i<length)
strcpy(extension,file_name+i+1);
else
strcpy(extension,"