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

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
strA string
dataA byte array reference which, on output, will contain str without its null terminator.
ex_string.nxc, and ex_StrToByteArray.nxc.