Way OT programming question

Jonathan Chen jonc at chen.org.nz
Sun Aug 1 22:44:20 PDT 2004


On Sun, Aug 01, 2004 at 06:29:58PM -0500, Josh Paetzel wrote:

[...]
> #ifndef lint
> #if 0
> static char sccsid[] = "@(#)cat.c       8.2 (Berkeley) 4/27/95";
> #endif
> #endif /* not lint */
> #include <sys/cdefs.h>
> __FBSDID("$FreeBSD: src/bin/cat/cat.c,v 1.29 2003/04/30 17:40:28 
> obrien Exp $");
> 
> 1) Isn't 'if 0' always negative?

Yes. The "#if 0" is a common way of blocking out code that you
don't/can't want to remove.
-- 
Jonathan Chen <jonc at chen.org.nz>
----------------------------------------------------------------------
"If you wish your merit to be known, acknowledge that of other people"


More information about the freebsd-questions mailing list