home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Fred Fish Collection 1.5
/
ffcollection-1-5-1992-11.iso
/
ff_disks
/
200-299
/
ff218.lzh
/
EdLib
/
man
/
FileType
< prev
next >
Wrap
Text File
|
1989-06-04
|
752b
|
38 lines
FILETYPE(3) Library Functions FILETYPE(3)
NAME
filetype - return the type of file referenced
SYNOPSIS
#include <edlib.h>
int filetype(path)
char *path;
DESCRIPTION
Filetype examines the file referenced in the path parameter
and returns the following tokens as its results:
[TYPE_DIR] File is of type directory
[TYPE_FILE] File is of type plain file.
DIAGNOSTICS
If an error occurs, then a value of -1 is returned and the
external variable errno is set to one of:
[ENOMEM] Not enough memory for temporary storage
[EACCES] Could not get a lock on the specified file.
AUTHOR
Edwin Hoogerbeets 01/08/88
SEE ALSO
isdir(3), isfile(3)