.\"##
.\" $XConsortium: p316,v 5.2 94/04/17 20:58:06 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 "SET ELEMENT POINTER AT LABEL" 3P "29 February 1991"
.SH NAME
SET ELEMENT POINTER AT LABEL \- set the element pointer to the next occurrence of the specified label
.IX "Editing" "SET ELEMENT POINTER AT LABEL"
.SH SYNOPSIS
.SS C Syntax
.ft B
.ta 1.25i 3i
.nf
void
pset_elem_ptr_label ( label_id )
Pint	label_id;	\fIlabel identifier\fP
.fi
.ft R
.SS Required PHIGS Operating States
(PHOP, *, STOP, *)
.SH DESCRIPTION
.SS Purpose
.IX "Element Pointer" "SET ELEMENT POINTER AT LABEL"
.IX "Current Element Pointer" "SET ELEMENT POINTER AT LABEL"
\s-2SET ELEMENT POINTER AT LABEL\s+2 sets the element pointer of the currently open structure to the next occurrence in the structure of an element containing the specified label identifier. Label structure elements are created by the \s-2LABEL\s+2 subroutine.
.SS C Input Parameter
.IP \fIlabel_id\fP
Specifies the label identifier in the open structure at which to set the element pointer.
.SS Execution
\s-2SET ELEMENT POINTER AT LABEL\s+2 searches for the label identifier from the structure element following the current element pointer to the end of the open structure. If an occurrence of \fIlabel identifier\fP is not found between the current element pointer and the end of the structure, the subroutine does not move the element pointer and generates an error.
.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)
.IP 205
Ignoring function, the label does not exist in the open structure
between the element pointer and the end of the structure
.SH SEE ALSO
.nf
.IP
.ta 0.5i
.SM "OFFSET ELEMENT POINTER (3P)"
.SM "INQUIRE ELEMENT POINTER (3P)"
.SM "INQUIRE CURRENT ELEMENT TYPE AND SIZE (3P)"
.SM "SET ELEMENT POINTER (3P)"
.SM "SET ELEMENT POINTER AT PICK IDENTIFIER (3P+)"
.SM "ELEMENT SEARCH (3P)"
.SM "LABEL (3P)"
.fi
