I$Delete

From NitrOS-9
Jump to: navigation, search
Delete File Deletes a specified disk file
OS9 I$Delete 103F 87

Entry Conditions

X address of the pathlist

Exit Conditions

X address of the last byte of the pathlist + 1; skips any trailing blanks

Error Output

CC carry set on error

B error code, if any

Additional Information

  • The Delete File call deletes the disk file specified by the pathlist. The file must have write permission attributes (public write, if the calling process is not the owner). An attempt to delete a device results in an error. The caller must have non-shareable write access to the file or an error results.

Example

Before the Delete File call:

/ D 0 / W O R K       M E M O $0d
 ?X                              

After the Delete File Call

/ D 0 / W O R K       M E M O $0d
                               ?X