Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

FreeTextBuffer(3)

ReadFileIntoTextBuffer(3)

ReadStringIntoTextBuffer(3)

AllocateTextBuffer(3W)  —  MISC. REFERENCE MANUAL PAGES

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(3), ReadFileIntoTextBuffer(3), ReadStringIntoTextBuffer(3)

Sun Release 4.0  —  Last change:   —  Last change:

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