Share this page

# long

A Type-Specifier that defines a variable as a long signed integer.

## Example

The following example converts the initial portion of the string, s, to a long value, l.

Copy code

    // Explicit declaration
        long atol(const char * s);
        long i;
        char * s = "2147483647 dollars";
        i = atol(s);
        lr_output_message ("Price $%ld", i);

    Example: Output:
    vuser_init.c(8): Price $2147483647

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