AllocateTextBuffer(3W) UNIX System V AllocateTextBuffer(3W)
Text Buffer Utilities
NAME
AllocateTextBuffer
SYNOPSIS
#include <textbuff.h>
...
extern TextBuffer * AllocateTextBuffer(filename, f, d)
char * filename;
TextUpdateFunction f;
caddr_t d;
DESCRIPTION
The AllocateTextBuffer function is used to allocate a new TextBuffer.
After it allocates the structure itself, initializes the members of the
structure, allocating storage, setting initial values, etc. The routine
also registers the update function provided by the caller. This function
normally need not be called by an application developer since the
ReadFileIntoTextBuffer and ReadStringIntoTextBuffer functions call this
routine before starting their operation. The routine returns a pointer
to the allocated TextBuffer.
The FreeTextBuffer function should be used to deallocate the storage
allocated by this routine.
SEE ALSO
FreeTextBuffer(3W), ReadFileIntoTextBuffer(3W),
ReadStringIntoTextBuffer(3W)
10/89 Page 1