.TH brk() "" "" "System Call (libc)"
.PC "Change size of data area"
.B "#include <unistd.h>"
\fBbrk(\fIaddr\^\fB)\fR
\fBchar *\fIaddr\^\fB;\fR
.PP
.II "break value, definition"
The
.I break
is the lowest address above the data area of a process.
.B brk()
sets the break to the given
.IR addr ,
possibly rounding up by some machine-dependent factor.
.SH "See Also"
.Xr libc, libc
.Xr malloc(), malloc
.Xr sbrk(), sbrk
.Xr unistd.h unistd.h
If the request succeeds,
.B brk()
returns zero.
Otherwise, it returns \-1 and sets
.B errno
to
.BR ENOMEM .
