home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
581b.lha
/
genmake_v1.03
/
valid.c
< prev
next >
Wrap
C/C++ Source or Header
|
1991-11-10
|
303b
|
22 lines
/* valid.c */
#include <stdio.h>
#include "types.h"
valid_source_file(name)
char *name;
{
int i;
for (i = 0; name[i] != '\0' && name[i] != '.'; i++)
;
if (name[i] == '.') {
if (!strcmp(&name[i+1],"c"))
return(CSOURCE);
if (!strcmp(&name[i+1],"h"))
return(CHEADER);
}
return(0);
}