Skip to content

Latest commit

 

History

History
32 lines (19 loc) · 584 Bytes

CreateDir.md

File metadata and controls

32 lines (19 loc) · 584 Bytes

NAME

CreateDir -- Create a new directory

SYNOPSIS

    lock = CreateDir( name )
    D0                D1

    BPTR CreateDir(STRPTR)

FUNCTION

CreateDir creates a new directory with the specified name. An error is returned if it fails. Directories can only be created on devices which support them, e.g. disks. CreateDir returns an exclusive lock on the new directory if it succeeds.

INPUTS

name - pointer to a null-terminated string

RESULTS

lock - BCPL pointer to a lock or NULL for failure.

SEE ALSO

Lock, UnLock