NXC
Version 1.2.1 r5
Main Page
Related Pages
Modules
Data Structures
Files
Examples
All
Data Structures
Files
Functions
Variables
Groups
Pages
ex_strtol.nxc
This is an example of how to use the
strtol
function.
task main()
{
string
str, endptr;
str =
"3.1415926e2abcdefg"
;
long
l =
strtol
(str, endptr);
NumOut
(0,
LCD_LINE1
, l);
TextOut
(0,
LCD_LINE2
, str);
TextOut
(0,
LCD_LINE3
, endptr);
Wait
(
SEC_6
);
}
Generated by
1.8.2