InsertPQ

  BOOL InsertPQ(hPQ, tag, key)    
  HPQ hPQ;    
  int tag;    
  int key;    

The InsertPQ function inserts the key and its associated tag into the priority queue.

Parameters

hPQ

Identifies a priority queue.

tag

Specifies a tag associated with the key.

key

Specifies a key.

Return Value

The return value is TRUE if the insertion is successful. Otherwise, it is -1.