c_qprint - Print the contents of a queue

SYNTAX

long FUNCTION c_qprint(q, print_obj)

     long q;    	
     void (print_obj)();

PARAMETERS

q (long, input)

The number of the queue to print. This number is returned by c_qcreate().

print_obj (void function, input)

A function used to print objects in the queue. This function should accept a pointer to an object in the queue as an argument and should generate some output based on that object.

DESCRIPTION

This routine is used to print the contents of a queue. For each object in the queue, the node number is printed followed by the output of the print function print_obj().

RETURN VALUE

c_qprint() returns

      0 --> Successful completion. 
     -1 --> Operation failed.  No such queue exists.