PatchworkOS
19e446b
A non-POSIX operating system.
Theme:
Default
Round
Robot
Loading...
Searching...
No Matches
NULL.h
Go to the documentation of this file.
1
#ifndef _INTERNAL_NULL_H
2
#define _INTERNAL_NULL_H 1
3
4
#ifndef NULL
5
6
#ifdef __cplusplus
7
#if __cplusplus >= 201103L
8
#define _NULL nullptr
9
#else
10
#define _NULL 0
11
#endif
12
#else
13
#define _NULL ((void*)0)
14
#endif
15
16
/**
17
* @brief Pointer error value.
18
* @ingroup libstd
19
*
20
* The `NULL` value respresents a invalid pointer, just as expected in the C standard library, but system calls that
21
* return pointers will also return `NULL` when an error has occurred, when that happens the `SYS_ERRNO` system
22
* call can be used to retrieve the errno code for the error that occurred.
23
*
24
*/
25
#define NULL _NULL
26
27
#endif
28
29
#endif
include
_libstd
NULL.h
Generated on Sat Jan 24 2026 10:59:24 for PatchworkOS by
1.9.8