reallocarray.3 (fa9896e082a1046ff4fbc75fcba4d18d1f2efc19) reallocarray.3 (dfa0ac74c2fbc1cde3e8cdb1ab9fe5cbb90a9b16)
1.\" Copyright (c) 1980, 1991, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" This code is derived from software contributed to Berkeley by
5.\" the American National Standards Committee X3, on Information
6.\" Processing Systems.
7.\"
8.\" Redistribution and use in source and binary forms, with or without

--- 117 unchanged lines hidden (view full) ---

126Instead, use
127.Fn reallocarray :
128.Bd -literal -offset indent
129if ((newp = reallocarray(p, num, size)) == NULL) {
130 ...
131.Ed
132.Sh SEE ALSO
133.Xr realloc 3
1.\" Copyright (c) 1980, 1991, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" This code is derived from software contributed to Berkeley by
5.\" the American National Standards Committee X3, on Information
6.\" Processing Systems.
7.\"
8.\" Redistribution and use in source and binary forms, with or without

--- 117 unchanged lines hidden (view full) ---

126Instead, use
127.Fn reallocarray :
128.Bd -literal -offset indent
129if ((newp = reallocarray(p, num, size)) == NULL) {
130 ...
131.Ed
132.Sh SEE ALSO
133.Xr realloc 3
134.Sh STANDARDS
135.Fn reallocarray
136conforms to
137.St -p1003.1-2024 .
134.Sh HISTORY
135The
136.Fn reallocarray
137function first appeared in
138.Ox 5.6
139and
140.Fx 11.0 .
138.Sh HISTORY
139The
140.Fn reallocarray
141function first appeared in
142.Ox 5.6
143and
144.Fx 11.0 .