.\"## .\" $XConsortium: p237,v 5.2 94/04/17 20:57:11 rws Exp $ .\"## .\"## $XMCOPY .\"## Copyright (c) 1990, 1991 by Sun Microsystems, Inc. .\"## .\"## All Rights Reserved .\"## .\"## Permission to use, copy, modify, and distribute this software and its .\"## documentation for any purpose and without fee is hereby granted, .\"## provided that the above copyright notice appear in all copies and that .\"## both that copyright notice and this permission notice appear in .\"## supporting documentation, and that the name of Sun Microsystems, .\"## not be used in advertising or publicity .\"## pertaining to distribution of the software without specific, written .\"## prior permission. .\"## .\"## SUN MICROSYSTEMS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, .\"## INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO .\"## EVENT SHALL SUN MICROSYSTEMS BE LIABLE FOR ANY SPECIAL, INDIRECT OR .\"## CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF .\"## USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR .\"## OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR .\"## PERFORMANCE OF THIS SOFTWARE. .TH "OFFSET ELEMENT POINTER" 3P "29 February 1991" .SH NAME OFFSET ELEMENT POINTER \- move the element pointer in the open structure relative to its current position .IX "Element Pointer" "OFFSET ELEMENT POINTER" .IX "Current Element Pointer" "OFFSET ELEMENT POINTER" .SH SYNOPSIS .SS C Syntax .ft B .ta 1.25i 3i .nf void poffset_elem_ptr ( ep_offset ) Pint ep_offset; \fIelement pointer offset\fP .fi .ft R .SS Required PHIGS Operating States (PHOP, *, STOP, *) .SH DESCRIPTION .SS Purpose \s-2OFFSET ELEMENT POINTER\s+2 moves the element pointer in the currently open structure a specified number of elements from its current position. .SS C Input Parameter .IP \fIep_offset\fP Specifies the number of structure elements to move the element pointer from its current position. .SS Execution \s-2OFFSET ELEMENT POINTER\s+2 adds \fIelement pointer offset\fP to the value of the element pointer in the open structure. The offset may be positive or negative. The pointer is set to point to the resulting element number. .sp If the resulting element number is less than 0, the element pointer is set to 0. .sp If the resulting element number is greater than the number of elements in the open structure, the element pointer is set to the last element in the structure. .SH ERRORS .IP 005 Ignoring function, function requires state (\s-2PHOP\s+2, \s-2*\s+2, \s-2STOP\s+2, \s-2*\s+2) .SH SEE ALSO .nf .IP .ta 0.5i .SM "INQUIRE ELEMENT POINTER (3P)" .SM "INQUIRE CURRENT ELEMENT TYPE AND SIZE (3P)" .SM "ELEMENT SEARCH (3P)" .SM "SET ELEMENT POINTER (3P)" .SM "SET ELEMENT POINTER AT LABEL (3P)" .fi