strerror Function (ROM Call 0x27D)

stdio.h, string.h

char *strerror (short err_no);

Gives an error message string.

strerror returns a pointer to string which contains text of the system error message err_no. Note that this is not a TI-Basic error message, but a low level error message. Here is a complete table of such messages:

0no error
1no such file entry
2I/O error
3not a serial device
4out of memory
5permission denied
6block device required
7no such device
8invalid argument
9file table is full
10device directory is full
11no space left on device
12no more allocation blocks
13no more data blocks on device
14file is open
15no RAM space configured
16no heap space configured
17seek can't extend read only file
18bad file descriptor - file not open
19invalid signal number
20argument out of range
21result out of range

Other values of err_no will generate "undefined errno value" message.

Note: Previous releases of TIGCCLIB prior to 2.0 reports wrongly that err_no is a TI-Basic error code, which is not true. To get a pointer to TI-Basic error message, use find_error_message function.