difference between NULL and nil?
Thanks
macbook, Mac OS X (10.5.4)
macbook, Mac OS X (10.5.4)
/* A null pointer constant. */
#if defined (STDDEFH) || defined (_needNULL)
#undef NULL /* in case <stdio.h> has defined it. */
#ifdef _GNUG_
#define NULL __null
#else /* G++ */
#ifndef __cplusplus
#define NULL ((void *)0)
#else /* C++ */
#define NULL 0
#endif /* C++ */
#endif /* G++ */
#endif /* NULL not defined and <stddef.h> or need NULL. */
#undef _needNULL
#ifndef NULL
#define NULL _DARWINNULL
#endif /* ! NULL */
#ifndef nil
#define nil NULL
#endif /* ! nil */
#define nil NULL
difference between NULL and nil?