txt_addstring(TEXT*,STRING*)
Adds a new string to a TEXT object, and copies the content of the given string into it.
Parameters:
TEXT* |
TEXT pointer. |
STRING* |
STRING pointer or char* with the string content, or NULL for adding an empty string. |
Returns:
New number of strings in the TEXT, or 0 if the function failed.
Speed:
Medium
Example:
TEXT text = { flags = SHOW; } // empty text with no strings
...
txt_addstring(text,"Hello World!"); // add a new string to the text
See also:
TEXT, txt_load, txt_for_dir ► latest
version online