File: _null.h

package info (click to toggle)
openbgpd 8.9-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,176 kB
  • sloc: ansic: 51,348; sh: 11,743; yacc: 5,515; makefile: 327
file content (18 lines) | stat: -rw-r--r-- 333 bytes parent folder | download | duplicates (16)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*	$OpenBSD: _null.h,v 1.2 2016/09/09 22:07:58 millert Exp $	*/

/*
 * Written by Todd C. Miller, September 9, 2016
 * Public domain.
 */

#ifndef NULL
#if !defined(__cplusplus)
#define	NULL	((void *)0)
#elif __cplusplus >= 201103L
#define	NULL	nullptr
#elif defined(__GNUG__)
#define	NULL	__null
#else
#define	NULL	0L
#endif
#endif