Appendix A: System Routines — Strings
981
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
push_ord
Declaration:
void
push_ord
(EStackIndex
i
)
Category(ies):
Strings
Description:
Pushes the ASCII value of the first character of a string.
Inputs:
i
— EStackIndex of a tokenized string or list of tokenized strings.
Outputs:
Pushes the ASCII value of the first character of the string as a tokenized
integer. If the input is a list of strings, then the routine pushes a list of the
appropriate ASCII values.
Assumptions:
None
Side Effects:
May cause expression stack to grow or heap compression.
Availability:
On AMS 2.00 and higher.
TI-89 / TI-92 Plus
Differences:
None
See Also: push_char, push_format, push_instring, push_str_to_expr,
push_string, push_zstr
Example:
push_ord (“hello”);
Pushes the ASCII value for ‘h’ onto the estack as a tokenized integer such that
top_estack
points to the bolded tag as follows.
104 1
NONNEGATIVE_INTEGER_TAG