Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ valloc(3) — Ultrix WS 2.0 VAX

Media Vault

Software Library

Restoration Projects

Artifacts Sought

valloc(3)

NAME

valloc − aligned memory allocator

SYNTAX

char *valloc(size)
unsigned size;

DESCRIPTION

The valloc subroutine allocates size bytes aligned on a page boundary.  It is implemented by calling malloc() with a slightly larger request, saving the true beginning of the block allocated, and returning a properly aligned pointer.

DIAGNOSTICS

The valloc subroutine returns a null pointer (0) if there is no available memory or if the arena has been detectably corrupted by storing outside the bounds of a block.

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026