Back to index

glibc  2.9
Defines | Functions
morecore.c File Reference
#include <malloc.h>

Go to the source code of this file.

Defines

#define _MALLOC_INTERNAL
#define __sbrk   sbrk
#define NULL   0

Functions

__malloc_ptr_t __default_morecore (__malloc_ptrdiff_t increment)

Define Documentation

#define __sbrk   sbrk

Definition at line 25 of file morecore.c.

Definition at line 20 of file morecore.c.

#define NULL   0

Definition at line 39 of file morecore.c.


Function Documentation

Definition at line 46 of file morecore.c.

{
  __malloc_ptr_t result = (__malloc_ptr_t) __sbrk (increment);
  if (result == (__malloc_ptr_t) -1)
    return NULL;
  return result;
}