[Contents] [Index] [Help] [Retrace] [Browse <] [Browse >]


NAME
    PrintFault -- Returns the text associated with a DOS error code (V36)

SYNOPSIS
    success = PrintFault(code, header)
    D0                    D1     D2

    BOOL PrintFault(LONG, STRPTR)

FUNCTION
    This routine obtains the error message text for the given error code.
    This is similar to the Fault() function, except that the output is
    written to the default output channel with buffered output.
    The value returned by IoErr() is set to the code passed in.

INPUTS
    code   - Error code
    header - header to output before error text

RESULT
    success - Success/failure code.

SEE ALSO
    IoErr(), Fault(), SetIoErr(), Output(), FPuts()