File types
Boyd Roberts
boyd at necisa.ho.necisa.oz.au
Fri Jan 11 16:14:59 AEST 1991
In article <127561 at linus.mitre.org> dean at snkoil.mitre.org (Dean Cookson) writes:
>Anyone know any easy way for a program to check if the argument it was
>given as an input file is a directory?? I've been using stat, but
>whatever more uses seems faster.
>
Use stat(2).
Boyd Roberts boyd at necisa.ho.necisa.oz.au
``When the going gets wierd, the weird turn pro...''
More information about the Comp.unix.questions
mailing list