brk

Changes the amount of space allocated for the data segment of the calling process.

Library:LibC
Classification:Single UNIX
Service:General C Services

Syntax

  #include <unistd.h> 
   
  int brk (
     void   *endds );
  

Parameters

endds

(IN) Points to the address of the break value.

Return Values

If successful, returns 0. Otherwise, returns -1 and sets errno to one of the following.

Decimal

Constant

Description

5

ENOMEM

No memory is available.

Remarks

The amount of space increase as the break value increases.

See Also