Docs » Autodocs » dos.library » CurrentDir
CurrentDir -- Make a directory lock the current directory
oldLock = CurrentDir( lock ) D0 D1 BPTR CurrentDir(BPTR)
CurrentDir() causes a directory associated with a lock to be made the current directory. The old current directory lock is returned. A value of zero is a valid result here, this 0 lock represents the root of file system that you booted from. Any call that has to Open() or Lock() files (etc) requires that the current directory be a valid lock or 0.
lock - BCPL pointer to a lock
oldLock - BCPL pointer to a lock
Lock(), UnLock(), Open(), DupLock()
|