(C) 1998 AROS - The Amiga Research OS


NAME
#include <proto/dos.h>

BOOL AssignAdd (name , lock)

LOCATION
In DOSBase at offset 105

SYNOPSIS
STRPTR name
BPTR lock

FUNCTION
Create a multi-directory assign, or adds to it if it already was one. Do not use or free the lock after calling this function - it becomes the assign and will be freed by the system when the assign is removed.

INPUTS
name
NULL terminated name of the assign.
lock
Lock on the assigned directory.

RESULT
!=0 success, 0 on failure. IoErr() gives additional information in that case. The lock is not freed on failure.

EXAMPLE

SEE ALSO
Lock(), AssignLock(), AssignPath(), AssignLate(), DupLock(), RemAssignList()

NOTES
This will only work with an assign created with AssignLock() or a resolved AssignLate() assign.

BUGS

INTERNALS

HISTORY
20.10.1998 hkiel
Amiga Research OS
10.11.1997 turrican
Use DOSTRUE and DOSFALSE defines
05.11.1997 turrican
Documentation added
31.10.1997 turrican
Initial implementation
27.01.1997 ldp
Polish
09.12.1996 aros
Added empty templates for all missing functions

Moved #include's into first column