delorie.com/djgpp/doc/libc/libc_848.html   search  
libc.a reference

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

valloc

Syntax

 
#include <stdlib.h>

void *valloc(size_t size);

Description

This function is just like malloc (see section malloc) except the returned pointer is a multiple of the CPU page size which is 4096 bytes.

Return Value

A pointer to a newly allocated block of memory.

Portability

ANSI/ISO C No
POSIX No

Example

 
char *page = valloc(getpagesize());

  webmaster     delorie software   privacy  
  Copyright © 2004     Updated Apr 2004