diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-17 10:51:52 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-17 10:51:52 +0000 |
commit | 4ad94864781f48b1a4b77f9cfb934622bf756ba1 (patch) | |
tree | 3900955c1886e6d2570fea7125ee1f01bafe876d /upstream/debian-unstable/man3/NULL.3const | |
parent | Adding upstream version 4.22.0. (diff) | |
download | manpages-l10n-4ad94864781f48b1a4b77f9cfb934622bf756ba1.tar.xz manpages-l10n-4ad94864781f48b1a4b77f9cfb934622bf756ba1.zip |
Adding upstream version 4.23.0.upstream/4.23.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'upstream/debian-unstable/man3/NULL.3const')
-rw-r--r-- | upstream/debian-unstable/man3/NULL.3const | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/upstream/debian-unstable/man3/NULL.3const b/upstream/debian-unstable/man3/NULL.3const index e043c1eb..76dbb929 100644 --- a/upstream/debian-unstable/man3/NULL.3const +++ b/upstream/debian-unstable/man3/NULL.3const @@ -3,7 +3,7 @@ .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" .\" -.TH NULL 3const 2023-02-05 "Linux man-pages 6.05.01" +.TH NULL 3const 2024-05-02 "Linux man-pages 6.8" .SH NAME NULL \- null pointer constant .SH LIBRARY @@ -12,7 +12,7 @@ Standard C library .SH SYNOPSIS .nf .B #include <stddef.h> -.PP +.P .B "#define NULL ((void *) 0)" .fi .SH DESCRIPTION @@ -36,12 +36,12 @@ and .SH CAVEATS It is undefined behavior to dereference a null pointer, and that usually causes a segmentation fault in practice. -.PP +.P It is also undefined behavior to perform pointer arithmetic on it. -.PP +.P .I NULL \- NULL is undefined behavior, according to ISO C, but is defined to be 0 in C++. -.PP +.P To avoid confusing human readers of the code, do not compare pointer variables to .BR 0 , @@ -50,7 +50,7 @@ and do not assign to them. Instead, always use .BR NULL . -.PP +.P .B NULL shouldn't be confused with .BR NUL , |