RegisterTextBufferUpdate(3W) — MISC. REFERENCE MANUAL PAGES
Text Buffer Utilities
NAME
RegisterTextBufferUpdate
SYNOPSIS
#include<textbuff.h>
...
extern void RegisterTextBufferUpdate(text, f, d)
TextBuffer ∗ text;
TextUpdateFunction f;
caddr_t d;
DESCRIPTION
The RegisterTextBufferUpdate procedure associates the TextUpdateFunction f and data pointer d with the given TextBuffer text. This update function will be called whenever an update operation is performed on the TextBuffer. See ReplaceBlockInTextBuffer for more details.
SEE ALSO
UnregisterTextBufferUpdate(3), ReadStringIntoTextBuffer(3),
ReadFileIntoTextBuffer(3)
NOTE
Calling this function increments a reference count mechanism used to determine when to actually free the TextBuffer. Calling the function with a NULL value for the function circumvents this mechanism.
Sun Release 4.0 — Last change: