TextBuffer Macros(3W) UNIX System V TextBuffer Macros(3W)
NAME
TextBuffer Macros: TextBufferUserData, TextBufferName,
TextBufferModified, TextBufferEmpty, TextBufferNamed, LinesInTextBuffer,
LastTextBufferLine, LastCharacterInTextBufferLine,
LengthOfTextBufferLine, SameTextLocation
SYNOPSIS
# include <textbuff.h>
TextBufferUserData(text,line)
TextBufferName(text)
TextBufferModified(text)
TextBufferEmpty(text)
TextBufferNamed(text)
LinesInTextBuffer(text)
LastTextBufferLine(text)
LastCharacterInTextBufferLine(text, line)
LengthOfTextBufferLine(text, line)
SameTextLocation(x,y)
DESCRIPTION
These macros are provided for use with the Text Buffer Utilities.
TextBufferUserData used to access the per-line user data.
TextBufferName returns the filename associated with text.
TextBufferModified returns a flag indicating whether text has been
modified since last saved.
TextBufferEmpty returns a flag indicating whether text is empty.
TextBufferNamed returns a flag indicating whether text is associated with
a filename.
LinesInTextBuffer returns the number of lines in text.
LastTextBufferLine returns the line number of the last line in text.
LastCharacterInTextBufferLine returns the offset of the last character in
text on line.
LengthOfTextBufferLine returns the length of line in text.
SameTextLocation returns a flag indicating whether location x and y are
the same.
10/89 Page 1