NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
ex_strtoul.nxc

This is an example of how to use the strtoul function.

task main()
{
string str, endptr;
str = "3.1415926e2abcdefg";
unsigned long l = strtoul(str, endptr);
NumOut(0, LCD_LINE1, l);
TextOut(0, LCD_LINE2, str);
TextOut(0, LCD_LINE3, endptr);
}