home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
LIBSRC.ZOO
/
libsrc
/
local
/
access.c
< prev
next >
Wrap
Text File
|
1992-02-16
|
338b
|
20 lines
#define INCL_DOSFILEMGR
#include <os2.h>
#include <unistd.h>
ULONG Dos32QueryPathInfo() asm ("Dos32QueryPathInfo");
int access (const char *path, int mode)
{
FILESTATUS fs;
ULONG rc;
rc = Dos32QueryPathInfo ((PSZ)path, 1, (PBYTE)&fs, sizeof (FILESTATUS));
if (rc)
return (-1);
return (0);
}