2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
5 Desc: Fault - Display an informative message about an error number.
9 /**************************************************************************
24 Fault prints the message corresponding with the error number
25 supplied. Any number of error numbers can be given at once,
26 but they must be separated by spaces.
31 Fault 205: object not found
33 This tells you that the error code 205 means that a disk
34 object could not be found.
36 **************************************************************************/
38 #include <exec/types.h>
40 #include <dos/rdargs.h>
41 #include <proto/exec.h>
42 #include <proto/dos.h>
43 #include <utility/tagitem.h>
46 #include <stdio.h> /* for sprintf() */
49 #include <aros/shcommands.h>
51 AROS_SH1H(Fault
, 41.1, "Display the meaning of a DOS error code",
52 AROS_SHAH(LONG
**, ,NUMBERS
,/N
/M
, NULL
, "The error numbers you wish to query"))
56 LONG
**theNum
= SHArg(NUMBERS
);
60 while( *theNum
!= NULL
)
63 Printf("Fault %ld", num
);