Mon 14 Oct 23:09:15 CEST 2024

This commit is contained in:
sbosse 2024-10-14 23:09:51 +02:00
parent 387929d599
commit 7238a91977

21
user/test/errcodes.c Normal file
View File

@ -0,0 +1,21 @@
/*
* 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;
}