[Serusers] Question about logical operators and isflagset

Steve Blair blairs at isc.upenn.edu
Mon May 9 12:44:38 CEST 2005


Hello:

  This should be easy but I cannot seem to get it working. I want to 
check if
either flag is set to 1 but I consistently hit the else clause even 
though at least
one flag is always 1. Any ideas will be appreciated.

Thanks,Steve

   if ( isflagset(13) | isflagset(17) ) {  
     ...
   } else {
     ...
   };

-- 
  
ISC Network Engineering
The University of Pennsylvania
3401 Walnut Street, Suite 221A
Philadelphia, PA 19104  


voice: 215-573-8396 

       215-746-8001

fax: 215-898-9348    

sip:blairs at upenn.edu




More information about the sr-users mailing list