AllocateBuffer(3W) UNIX System V AllocateBuffer(3W)
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
elementsize. The used member of the Buffer is set to zero and the size
member is set to the value of initialsize. If initialsize is zero the
pointer p is set to NULL, otherwise the amount of space required
(initialsize * elementsize) 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(3W)
10/89 Page 1