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