Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Watcom C Library Reference - <u>synopsis:</u> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Synopsis:
    #include <stdlib.h>
    unsigned long _lrotr( unsigned long value,
                          unsigned int shift );

Description:
    The _lrotr function rotates the unsigned long integer, determined by
    value, to the right by the number of bits specified in shift.

Returns:
    The rotated value is returned.

Example:
    #include <stdio.h>
    #include <stdlib.h>

    unsigned long mask = 0x12345678;

    void main()
      {
        mask = _lrotr( mask, 4 );
        printf( "%08lX\n", mask );
      }

    produces the following:

    81234567

Classification:
    WATCOM

Systems:
    All, Netware

See Also:
    _lrotl, _rotl, _rotr

See Also: _lrotl _rotl

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson