#include <tk.h> int Tk_GetAnchor(interp, string, anchorPtr) char * Tk_NameOfAnchor(anchor)
Under normal circumstances the return value is TCL_OK and interp is unused. If string doesn't contain a valid anchor position or an abbreviation of one of these names, then an error message is stored in interp->result, TCL_ERROR is returned, and *anchorPtr is unmodified.
Tk_NameOfAnchor is the logical inverse of Tk_GetAnchor. Given an anchor position such as TK_ANCHOR_N it returns a statically-allocated string corresponding to anchor. If anchor isn't a legal anchor value, then ``unknown anchor position'' is returned.
Copyright © 1989-1994 The Regents of the University of California.
Copyright © 1994-1997 Sun Microsystems, Inc.