| push_string | Function (ROM Call 0x326)

AMS 1.01 or higher | basfunc.h

void push_string (CESI expr);

Executes TI-Basic 'string' function.

push_string converts the expression pointed to by expr to a string and pushes this string on the expression stack. For example, after executing the code

    push_shortint (100);
    push_quantum_pair (VAR_X_TAG, ADD_TAG);
    push_string (top_estack);

the string `"x+100"` will be pushed on the expression stack. See top_estack and Tags for more info about this example.
Of course, expr may point to a string containing a variable name, but it must not point to an ordinary string. Otherwise the string is truncated at the first space (but not after the 8th character). If you only want to push a string (not an expression converted to a string), a method which always works would be:

    push_expr_quantum (expr, STR_TAG);

Uses: HeapFree, check_estack_size, Parse1DExpr, push_quantum, push_quantum_pair, top_estack, memmove, strlen
Used by: push_median, push_part, cmd_sorta, cmd_sortd, push_format

See also: push_str_to_expr, push_zstr, display_statements