/* * File type testing routine. * $Id$ * Copyright (c) 1997 by Tycho Softworks. * For conditions of distribution and reuse see product license. */#include<std/files.h>boolisftype(constchar*path,intftype){structstatino;if(stat(path,&ino))returnFALSE;if((ino.st_mode&S_IFMT)==ftype)returnTRUE;returnFALSE;}