<< Previous | Next >> | |
|
int fdelete( FileNumber name );
Description
- Delete the file with the given number. The specified file must not be open. The file number (i.e.
name
) is composed of two parts: the low byte contains the actual file number, and the high byte (if not zero) contains the metadata extent number of the file.Parameters
- name
- File number (1 to 255 inclusive).
Return value
0
: Success.
!0
: Failure.Library
- fs2.LIB
ERRNO values
ENOENT
- File doesn't exist, or metadata extent number doesn't match an existing file.
EBUSY
- File is open.
EIO
- I/O error when releasing blocks occupied by this file.See also
- fcreate (FS2)
Dynamic C Functions | << Previous | Next >> | rabbit.com |