]>
cloudbase.mooo.com Git - z180-stamp.git/blob - avr/strerror.c
2 * (C) Copyright 2018 Leo C. <erbl259-lmu@yahoo.de>
4 * SPDX-License-Identifier: GPL-2.0
11 static const FLASH
char * const FLASH error_strings
[] = {
12 FSTR("Unknown error"),
13 FSTR("Not enough memory"), /* 101 */
14 FSTR("Interrupt"), /* 102 */
15 FSTR("Bus timeout"), /* 103 */
16 FSTR("Unexpected argument"), /* 104 */
17 FSTR("Invalid disk number"), /* 105 */
18 FSTR("Disk already attached"), /* 106 */
19 FSTR("Disk not attached"), /* 107 */
20 FSTR("Error opening file"), /* 108 */
21 FSTR("File already attached to other drive"), /* 109 */
22 FSTR("CPU is running"), /* 110 */
23 FSTR("Invalid argument"), /* 111 */
24 FSTR("Unexpected EOF"), /* 112 */
25 FSTR("Disk full"), /* 113 */
29 const FLASH
char * my_strerror_P(ERRNUM errnum
)
32 return fat_rctostr(errnum
);
35 if ((unsigned) errnum
>= ARRAY_SIZE(error_strings
))
38 return error_strings
[errnum
];