aboutsummaryrefslogtreecommitdiff
path: root/triscv/src/common.c
blob: f8bdbf612415b25ea31d8f074aeeca04489bda71 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* SPDX-License-Identifier: copyleft-next-0.3.1 */

#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];
}