diff options
Diffstat (limited to 'man3/assert.3')
-rw-r--r-- | man3/assert.3 | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/man3/assert.3 b/man3/assert.3 index 24cdfe749..b1e8a9dc7 100644 --- a/man3/assert.3 +++ b/man3/assert.3 @@ -6,7 +6,7 @@ .\" Modified Sat Jul 24 21:42:42 1993 by Rik Faith <faith@cs.unc.edu> .\" Modified Tue Oct 22 23:44:11 1996 by Eric S. Raymond <esr@thyrsus.com> .\" Modified Thu Jun 2 23:44:11 2016 by Nikos Mavrogiannopoulos <nmav@redhat.com> -.TH assert 3 2023-02-05 "Linux man-pages 6.03" +.TH assert 3 2023-07-20 "Linux man-pages 6.05.01" .SH NAME assert \- abort the program if assertion is false .SH LIBRARY @@ -59,22 +59,30 @@ No value is returned. .SH ATTRIBUTES For an explanation of the terms used in this section, see .BR attributes (7). -.ad l -.nh .TS allbox; lbx lb lb l l l. Interface Attribute Value T{ +.na +.nh .BR assert () T} Thread safety MT-Safe .TE -.hy -.ad .sp 1 .SH STANDARDS -POSIX.1-2001, POSIX.1-2008, C99. +C11, POSIX.1-2008. +.SH HISTORY +C89, C99, POSIX.1-2001. +.PP +In C89, +.I expression +is required to be of type +.I int +and undefined behavior results if it is not, but in C99 +it may have any scalar type. +.\" See Defect Report 107 for more details. .SH BUGS .BR assert () is implemented as a macro; if the expression tested has side-effects, |