Kaydet (Commit) b3642579 authored tarafından Jack Jansen's avatar Jack Jansen

Added getfiletype routine

üst 7f7f2748
......@@ -22,3 +22,16 @@ long creator, type;
return SetFInfo(pname, 0, &info);
}
long
getfiletype(name)
char *name;
{
FInfo info;
unsigned char *pname;
pname = (StringPtr) Pstring(name);
if ( GetFInfo(pname, 0, &info) < 0 )
return -1;
return info.fdType;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment