The system function StrLib.setNullTerminator changes all trailing spaces in a string to nulls. You can use StrLib.setNullTerminator to convert an item before passing it to a C or C++ program that expects a null-terminated string as an argument.
StrLib.setNullTerminator(target VagText inOut)
The target string is searched for trailing spaces and nulls. Any spaces found are changed to nulls.
StrLib.setNullTerminator(myItem01);
Related concepts
Syntax diagram for EGL functions
Related reference
EGL library StrLib