Finding NULL byte in a long
    Doug 
    djs at nimbus3.uucp
       
    Wed Dec  5 14:32:06 AEST 1990
    
    
  
I know this has been on the net before, since I thought I saved it,
but can't find it now.  Anyway, could someone tell me what the
C expression is that tells you if a long has a NULL byte in it.
This is without masking each byte and testing it for 0.  It is very
clever and non-obvious.  Thanks.
					Doug
-- 
Doug Scofea   Email: nimbus3!djs at cis.ohio-state.edu    Phone:+1 614 459-1889
    
    
More information about the Comp.lang.c
mailing list