This header file contains the following functions:
_memset memchr memcmp memcpy memmove memset sprintf strcat strchr strcmp strcpy strcspn strerror strlen strncat strncmp strncpy strpbrk strrchr strspn strstr strtokand the following constants and predefined types:
NULL size_t
Flags | Meaning |
none | Right align (pad spaces or zeros to left) |
- | Left align (pad spaces to right) |
+ | Always force sign (include prefix '+' before positive values) |
z | Don't postfix padding (this option is non-ANSI, i.e. TI specific) |
space | Insert space before positive values |
# | Prefix octal values with 0 and hex values (>0) with '0x') Force '.' in float output (and prevent trunctation of trailing zeros) |
^ | TI-Float format: special character for the exponent and for the minus sign, no '+' prefix in the exponent, 0. instead of 0, no leading zeros if the magnitude is smaller than 1 (this option is non-ANSI, i.e. TI specific) |
| | Centre the output in the field (this option is non-ANSI, i.e. TI specific) |
Width | Meaning |
num | Print at least num characters - padded the rest with blanks |
0num | (Zero prefixed) Same as above but padded with '0' |
* | The width is specified in the arguments list (before value being formatted) |
Precision | Meaning |
none | Default precision |
num | num is number of chars, decimal places, or number of significant digits (num<=16) to display depending on type (see below) |
-1 | Default = 6 digits (this option is non-ANSI, i.e. TI specific) |
* | The precision is specified in the argument list (before value being formatted) |
Size {h|l} | Meaning |
h | Force short integer |
l | Force long integer |
Type | Meaning |
d, i | Signed decimal integer |
u | Unsigned decimal integer |
o | Octal integer (this option is non-ANSI, i.e. TI specific) |
b | Binary integer (this option is non-ANSI, i.e. TI specific) |
x | Lowercase hexadecimal integer |
X | Uppercase hexadecimal integer |
e | Floating point, format [-]d.dddde[sign]ddd (exponential format) |
E | Like 'e' but with uppercase letter for the exponent |
f | floating point, format [-]dddd.dddd |
g | Floating point: most compact float format available ('e' or 'f'); this is the most common option, used for most dialog floats |
G | Like 'g' but with uppercase letter for the exponent |
r | Floating point, engineering form (this option is non-ANSI, i.e. TI specific) |
R | Like 'r' but with uppercase letter for the exponent |
y | Floating point, mode specified float format (this option is non-ANSI, i.e. TI specific) |
Y | Like 'y' but with uppercase letter for the exponent |
c | Character |
s | String |
p | Pointer (0xhhhhhhhh); principally the same as '#.8x' |
% | None: the character '%' is printed instead |
strchr (strs, 0)returns a pointer to the terminating null character of the string strs. Returns a pointer to the first occurrence of the character c in str. If c does not occur in str, strchr returns NULL.
0 | no error |
1 | no such file entry |
2 | I/O error |
3 | not a serial device |
4 | out of memory |
5 | permission denied |
6 | block device required |
7 | no such device |
8 | invalid argument |
9 | file table is full |
10 | device directory is full |
11 | no space left on device |
12 | no more allocation blocks |
13 | no more data blocks on device |
14 | file is open |
15 | no RAM space configured |
16 | no heap space configured |
17 | seek can't extend read only file |
18 | bad file descriptor - file not open |
19 | invalid signal number |
20 | argument out of range |
21 | result out of range |
memcmp("\xFF","\x7F",1)
returns a value greater than 0. More precise,
the exact return value is the result of subtracting the first pair of values
that differ in the two blocks being compared based on them being signed
chars.
typedef unsigned long size_t;