home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The CDPD Public Domain Collection for CDTV 4
/
CDPD_IV.bin
/
networking
/
tcpip
/
amitcp-support
/
wustl-ftpdaemon
/
support
/
readlink.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1994-06-29
|
258 b
|
15 lines
#include <proto/dos.h>
#include <string.h>
int readlink(char *path, char *buf, int bufsiz)
{
struct MsgPort *port;
int ret = 0;
if (port = DeviceProc (path))
if (ReadLink(port, NULL, path, buf, bufsiz))
ret = strlen (buf);
return ret;
}