Next: string-table-add-ref - Add an entry to a string table, get reference, Previous: string-substitute - multiple global replacements, Up: Common Scheme Functions [Contents][Index]
Usage: (string-table-add st-name str-val)
Check for a duplicate string and, if none, then insert a new
string into the string table. In all cases, returns the
character index of the beginning of the string in the table.
The returned index can be used in expressions like:
string_array + <returned-value>
that will yield the address of the first byte of the inserted string. See the strtable.test AutoGen test for a usage example.
Arguments:
st-name - the name of the array of characters
str-val - the (possibly) new value to add