C语言函数—lsearch

函数名

lrotl, _lrotl

功 能

将无符号长整型数向左循环移位

用 法

unsigned long lrotl(unsigned long lvalue, int count);

unsigned long _lrotl(unsigned long lvalue, int count);

程序例

/* lrotl example */ 
#include <stdlib.h> 
#include <stdio.h> 

int main(void) 
{ 
   unsigned long result; 
   unsigned long value = 100; 

   result = _lrotl(value,1); 
   printf("The value %lu rotated left one bit is: %lun", value, result); 

   return 0; 
} 
  
  

如果引用本站的原创文章,请注明原文链接:,本站保留追究责任的权利!