.\"## .\" $XConsortium: p030,v 5.2 94/04/17 20:54:32 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 "DELETE ELEMENT" 3P "29 February 1991" .SH NAME DELETE ELEMENT \- delete structure element .IX "Editing" "DELETE ELEMENT" .SH SYNOPSIS .SS C Syntax .ft B .ta 1.25i 3i .nf void pdel_elem () .fi .ft R .SS Required PHIGS Operating States (PHOP, *, STOP, *) .SH DESCRIPTION .SS Purpose \s-2DELETE ELEMENT\s+2 deletes the structure element currently pointed to by the element pointer in the open structure. .SS C Input Parameters None .SS Execution The \s-2DELETE ELEMENT\s+2 subroutine removes the structure element currently pointed to by the element pointer in the open structure and renumbers the remaining elements in the structure to maintain a consecutive, ascending order in the structure. .sp When the element is deleted, the element pointer is set to point to the element preceding the deleted element in the structure. .sp If the element pointer is 0 (pointing to the position in the structure before any elements) when \s-2DELETE ELEMENT\s+2 is called, the subroutine will not delete any element and will not adjust the element pointer. .SH ERRORS .IP 005 Ignoring function, function requires state (\s-2PHOP, *, STOP, *\s+2) .SH SEE ALSO .nf .IP .ta 0.5i .SM "SET EDIT MODE (3P)" .SM "EMPTY STRUCTURE (3P)" .SM "DELETE ELEMENT RANGE (3P)" .SM "DELETE ELEMENTS BETWEEN LABELS (3P)" .fi