LocationOfPosition(3W) — MISC. REFERENCE MANUAL PAGES
Text Buffer Utilities
NAME
LocationOfPosition
SYNOPSIS
#include <textbuff.h>
...
extern TextLocation LocationOfPosition(text, position)
TextBuffer ∗ text;
TextPosition position;
DESCRIPTION
The LocationOfPosition function is used to translate a position in the text TextBuffer to a TextLocation. It returns the translated TextLocation. If the position is invalid the Buffer pointer buffer is set to NULL and the line and offset members are set the the last valid location in the TextBuffer; otherwise buffer is set to a non-NULL (though useless) value.
SEE ALSO
LineOfPosition(3), PositionOfLocation(3), LocationOfPosition(3)
Sun Release 4.0 — Last change: