blob: 23d8836d2fe3505c86f92d914806f2a17ed7a93e (
plain) (
tree)
|
|
/* See LICENSE file for copyright and license details. */
#include "../libsyscalls.h"
#include <stddef.h>
#include <stdio.h>
int
main(void)
{
size_t count;
#define X(...) 1
count = (LIBSYSCALLS_LIST_ERRORS(X, +));
#undef X
printf("%s\n", libsyscalls_strerror((enum libsyscalls_error)-1));
printf("%s\n", libsyscalls_strerror((enum libsyscalls_error)count));
if (fflush(stdout) || fclose(stdout)) {
perror(NULL);
return 1;
}
return 0;
}
|