diff options
Diffstat (limited to 'triscv/src/common.c')
| -rw-r--r-- | triscv/src/common.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/triscv/src/common.c b/triscv/src/common.c new file mode 100644 index 0000000..e73d76e --- /dev/null +++ b/triscv/src/common.c @@ -0,0 +1,13 @@ +#include <triscv/common.h> + +static const char *err_strs[] = { + [OK] = "OK", + [ERR_FULL] = "full", + [ERR_EXISTS] = "exists", + [ERR_OOB] = "out of bounds" +}; + +const char *err_str(stat_t s) +{ + return err_strs[s]; +} |
