Shiny Language Reference

Language Reference > String Functions


stralloc

stralloc(string Target, int Size);

 

 

Allocates space in a string variable

STRALLOC allocates the required space in a string variable. This is intended for use with imported WIN32API functions that require a string with preallocated space. The existing contents of the target string variable will be erased.

 

Parameters

Target

The string to allocate space inside.

Size

The number of characters to allocate

Return Value

None

 

Example Code

// MyString will be 50 characters long
stralloc(MyString, 50);