Share this page

# Example: atoi

The following example converts the initial portion of the string, s, to an integer.

        int i;
        char * s = "7 dollars";
        i = atoi(s);
        lr_output_message ("Price $%d", i);

    Example: Output:
    vuser_init.c(7): Price $7

Tips to improve your search results... VuGen Function Reference Version 25.1-25.3 Function Reference 25.1-25.3 All View Local Help Center View Online Help Center Version: