]>
cloudbase.mooo.com Git - z180-stamp.git/blob - avr/strerror.c
bb151adb5ba63857e80d85aa0178aeeda4537ff0
2 * (C) Copyright 2018 Leo C. <erbl259-lmu@yahoo.de>
4 * SPDX-License-Identifier: GPL-2.0
12 static const FLASH
char * const FLASH error_strings
[] = {
13 FSTR("Unknown error"),
14 FSTR("Not enough memory"),
18 const FLASH
char * my_strerror_P(ERRNUM errnum
)
21 return fat_rctostr(errnum
);
24 if ((unsigned) errnum
>= ARRAY_SIZE(error_strings
))
27 return error_strings
[errnum
];