(C) 1998 AROS - The Amiga Research OS


NAME
#include <exec/types.h>
#include <proto/dos.h>

BPTR ParentDir (lock)

LOCATION
In DOSBase at offset 35

SYNOPSIS
BPTR lock

FUNCTION
Returns a lock to the parent directory of the supplied lock.

INPUTS
lock
Lock to get parent directory of.

RESULT
Returns a lock to the parent directory or NULL, in which case the supplied lock has no parent directory (because it is the root directory) or an error occured. IoErr() returns 0 in the former case and a different value on error.

EXAMPLE

SEE ALSO

NOTES

BUGS
Locks get via ParentDir() are currently never unlocked! Use this function with care.

INTERNALS

HISTORY
20.10.1998 hkiel
Amiga Research OS
07.11.1997 srittau
First working version. Probably it's still buggy
27.01.1997 ldp
Polish
09.12.1996 aros
Added empty templates for all missing functions

Moved #include's into first column