Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ AllocateBuffer(3W) — SunOS 4.1.2

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

FreeBuffer(3)

AllocateBuffer(3W)  —  MISC REFERENCE MANUAL PAGES

Text Buffer Utilities

NAME

 AllocateBuffer

SYNOPSIS

#include <buffutil.h>
  ...
extern Buffer ∗ AllocateBuffer(element_size, initial_size)
int element_size;
int initial_size;

DESCRIPTION

The AllocateBuffer function allocates a Buffer for elements of the given element_size.  The used member of the Buffer is set to zero and the size member is set to the value of initial_size.  If initial_size is zero the pointer p is set to NULL, otherwise the amount of space required (initial_size ∗ element_size) is allocated and the pointer p is set to point to this space.  The function returns the pointer to the allocated Buffer. 

SEE ALSO

FreeBuffer(3)

Sun Release 4.1  —  Last change: {:heading=>"AllocateBuffer\|(\|3W\|)\0\0\(em\0\0\∗(]D"}  —  Last change: {:heading=>"AllocateBuffer\|(\|3W\|)\0\0\(em\0\0\∗(]D"}

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