home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
RISC DISC 1
/
RISC_DISC_1.iso
/
pd_share
/
code
/
unixlib
/
!UnixLib
/
test
/
c
/
getcwd
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
UTF-8
Wrap
Text File
|
1994-03-08
|
257 b
|
15 lines
#include <stdio.h>
#include <unistd.h>
#include <sys/syslib.h>
int
main ()
{
char buffer[512];
printf ("Current dir = %s\n", getcwd (buffer, 512));
__riscos_ver = __OS_RISCOS_200;
printf ("Current dir = %s\n", getcwd (buffer, 512));
return 0;
}