home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
LIBSRC.ZOO
/
libsrc
/
local
/
getwd.c
< prev
next >
Wrap
Text File
|
1992-02-16
|
318b
|
20 lines
#define INCL_DOSFILEMGR
#include <os2.h>
ULONG Dos32QueryCurrentDir() asm ("Dos32QueryCurrentDir");
char *getwd (char pathname[])
{
ULONG count = 2048;
ULONG rc;
rc = Dos32QueryCurrentDir (0, (PBYTE)&pathname[0], &count);
if (rc)
return (NULL);
return (&pathname[0]);
}