Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!nimbus3!djs From: djs@nimbus3.uucp (Doug) Newsgroups: comp.lang.c Subject: Finding NULL byte in a long Message-ID: <1990Dec5.033206.10463@nimbus3.uucp> Date: 5 Dec 90 03:32:06 GMT Reply-To: djs@nimbus3.UUCP (Doug) Organization: AGS Information Services, Inc. Lines: 11 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@cis.ohio-state.edu Phone:+1 614 459-1889 Brought to you by Super Global Mega Corp .com