PQInsert

Section: C Library Functions (3)
Updated: IRIT Version 6.0
Index Return to Main Contents
 

NAME

PQInsert()  

SYNOPSIS

misc_lib/priorque.c:155

VoidPtr PQInsert(PriorQue **PQ, VoidPtr NewItem)
 

DESCRIPTION

Insert a new element into the queue (NewItem is a pointer to new element) using given compare function CompFunc (See PQCompFunc). Insert elelemnt will always be a leaf of the constructed tree. Returns a pointer to old element if was replaced or NULL if the element is new.  

PARAMETERS:

PQ: To insert a new element to.

NewItem: The new element to insert.  

FUNCTION RETURN VALUE

VoidPtr: An old element NewItem replaced, or NULL otherwise.

 

ORIGIN

(C) Copyright 1989/90-95 Gershon Elber, Technion, IIT


 

Index

NAME
SYNOPSIS
DESCRIPTION
PARAMETERS:
FUNCTION RETURN VALUE
ORIGIN

This document was created by man2html, using the manual pages.
Time: 07:27:55 GMT, July 20, 2024