The C language has operators to perform left and right bitwise shift operations (« and »), but it does not have a rotate operator. When rotating, any bit shifted out of the value is shifted back into the now empty bit location.
Simple expressions can be used to obtain a rotated value, however. For example, to rotate an 8-bit wide unsigned variable, c, one bit to the left, the following code can be used:
c = (c << 1) | (c >> 7);
i = (i >> 2) | (i << 14);