#include <string.h>
#define TYPES ".txt.ini.bak.asc"
int IsApprovedType(char *str)
{ if (strstr(str,TYPES))
return 1;
return 0; }
Type: Posts; User: CommonTater
#include <string.h>
#define TYPES ".txt.ini.bak.asc"
int IsApprovedType(char *str)
{ if (strstr(str,TYPES))
return 1;
return 0; }
Then you have to write a function to test if the file extension entered by the user is part of a list of acceptable extensions... and depending on the return value of the function either open the...