Share this page

# Example: register

In the following example, 3 register long variables are defined, a, b and c.

        unsigned long buf[3] ;
        register unsigned long a, b, c;
        buf[0] = 1;
        buf[1] = 3;
        buf[2] = 5;
        a = buf[0];
        b = buf[1];
        c = buf[2];
        lr_output_message ("values are: %ld %ld %ld", a, b, c);

    Example: Output:
    Action.c(14): values are: 1 3 5

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: