str_create(char* content)

Creates a variable length STRING object. The string is automatically removed when the engine is closed.

Parameters:

content - string content, either from a source STRING* pointer or a char array. A hash '#' followed by a number creates a string with the given size and fills it with spaces.

Returns:

STRING* - pointer to the created STRING.

Speed:

Medium

Examples:

str0 = str_create(""); // creates an empty string 
str1 = str_create("This is a \n new string!");
str2 = str_create("#4000"); // creates a string of 4000 spaces

See also:

STRING, str_cpy, str_remove, _str