# GetFmtIOError

FmtIOErrType GetFmtIOError (void);

## Purpose

Returns specific I/O information for the last call to a Formatting and I/O function that performs file I/O. If the last function was successful, GetFmtIOError returns zero (FmtIONoErr). If the last function that performs I/O encountered an I/O error, GetFmtIOError returns a nonzero value.

## Parameters

None.

## Return Value

Name | Type | Description
status | FmtIOErrType | Contains the error number for the error that occurred in the last call to a Formatting and I/O Library function. All library functions that set the error status on failure also set the error status to FmtIONoErr on success. Thus, if the last call to a library function succeeded, this function returns FmtIONoErr.
String | Code | Description
FmtIONoErr | 0 | No error.
FmtIONoFileErr | 1 | File not found.
FmtIOGenErr | 2 | General I/O error.
FmtIOBadHandleErr | 3 | Invalid file handle.
FmtIOInsuffMemErr | 4 | Not enough memory.
FmtIOFileExistsErr | 5 | File already exists.
FmtIOAccessErr | 6 | Permission denied.
FmtIOInvalArgErr | 7 | Invalid argument.
FmtIOMaxFilesErr | 8 | Maximum number of files open.
FmtIODiskFullErr | 9 | Disk full.
FmtIONameTooLongErr | 10 | Filename too long.