_str(char* content);
Converts a char* string to a temporary STRING* pointer, to
be used as a parameter for functions called from external languages.
Parameters:
content - a null-terminated char* string.
Returns:
STRING*
Speed:
Fast
Remarks:
- Use this function only for
passing temporary strings to functions; use str_create for generating permanent STRING* pointers.
- All engine functions usually accept char* instead of STRING*,
but some functions in user-written A5 or A6 DLLs require STRING* parameters.
Example:
my_dll_function(_str("requires a STRING"));
See also:
_chr, str_create
► latest
version online