setBlankTerminator()
The strLib.setBlankTerminator() system function changes a null terminator and any subsequent characters to spaces. strLib.setBlankTerminator() changes a string value returned from a C or C++ program to a character value that can operate correctly in an EGL program.
Syntax
strLib.setBlankTerminator(target CHAR | DBCHAR | MBCHAR | UNICODE inOut)
- target
- The target string can be of type CHAR, DBCHAR, MBCHAR, or UNICODE. If no null value is found in target, the function has no effect.
Example
// call C function defined in NativeLibrary
// name is defined as CHAR(25)
get_name(ID, name);
strLib.setBlankTerminator(name);
// name is now "Freddy Ramirez "
Compatibility considerations
| Platform | Issue |
|---|---|
| JavaScript™ generation | The function sysLib.setBlankTerminator() is not supported |