NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
void StrToByteArray ( string  str,
byte &  data[] 
)
inline

Convert a string to a byte array.

Convert the specified string to an array of byte by removing the null terminator at the end of the string. The output array variable must be a one-dimensional array of byte.

See Also
ByteArrayToStr, ByteArrayToStrEx
Parameters
strA string
dataA byte array reference which, on output, will contain str without its null terminator.
Examples:
ex_string.nxc, and ex_StrToByteArray.nxc.