'\" te .\" Copyright (c) 2002, Sun Microsystems, Inc. All Rights Reserved. Copyright 1989 AT&T Copyright (c) 1983 Regents of the University of California. All rights reserved. The Berkeley software License Agreement specifies the terms and conditions for redistribution. .TH insque 3C "24 Jul 2002" "SunOS 5.11" "Standard C Library Functions" .SH NAME insque, remque \- insert/remove element from a queue .SH SYNOPSIS .LP .nf include \fBvoid\fR \fBinsque\fR(\fBstruct qelem *\fR\fIelem\fR, \fBstruct qelem *\fR\fIpred\fR); .fi .LP .nf \fBvoid\fR \fBremque\fR(\fBstruct qelem *\fR\fIelem\fR); .fi .SH DESCRIPTION .sp .LP The \fBinsque()\fR and \fBremque()\fR functions manipulate queues built from doubly linked lists. Each element in the queue must be in the following form: .sp .in +2 .nf struct qelem { struct qelem *q_forw; struct qelem *q_back; char q_data[\|]; }; .fi .in -2 .sp .LP The \fBinsque()\fR function inserts \fIelem\fR in a queue immediately after \fIpred\fR. The \fBremque()\fR function removes an entry \fIelem\fR from a queue. .SH ATTRIBUTES .sp .LP See \fBattributes\fR(5) for descriptions of the following attributes: .sp .sp .TS tab() box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) . ATTRIBUTE TYPEATTRIBUTE VALUE _ Interface StabilityStandard _ MT-LevelUnsafe .TE .SH SEE ALSO .sp .LP \fBattributes\fR(5), \fBstandards\fR(5)