22 lines
360 B
C
22 lines
360 B
C
/*
|
|
* errcodes.c
|
|
*
|
|
* IMPORTANT: must be updated as new enums are added.
|
|
*
|
|
* Simple test to display all error strings.
|
|
*/
|
|
|
|
#include "kernel/error.h"
|
|
#include "library/errno.h"
|
|
#include "library/string.h"
|
|
|
|
#define LOWEST_ENUM -13
|
|
|
|
int main(int argc, char ** argv)
|
|
{
|
|
for (int i = -1; i >= LOWEST_ENUM; i--) {
|
|
printf("%s\n", strerror(i));
|
|
}
|
|
return 0;
|
|
}
|