NXC
Version 1.2.1 r5
Main Page
Related Pages
Modules
Data Structures
Files
Examples
All
Data Structures
Files
Functions
Variables
Groups
Pages
ex_StrLenOld.nxc
This is an example of how to use the
StrLen
function.
task main()
{
string
msgs[] = {
"please work"
,
"testing, 1, 2, 3"
};
string
msg =
"hi there"
;
byte x =
StrLen
(msg);
// return the length of msg
NumOut
(0,
LCD_LINE6
,
StrLen
(msgs[0]));
Wait
(
SEC_5
);
}
Generated by
1.8.2