- queue p;
-
- if (qempty(q)){
- fprintf( stderr, "removing first element from empty queue\n");
- errsignal(RTESYSER);
- }
- p = q->next;
- q->next = q->next->next;
- if (p == q) q = NULL; /* removing last element of the queue */
- free(p);
- return(q);
-} /* end qremove */
-
-
-queue qdelete(q, e) /* Delete arbitrary element */
-queue q;
-qelem e;
+ queue p;
+
+ if (qempty(q)){
+ fprintf(stderr, "removing first element from empty queue\n");
+ errsignal(RTESYSER);
+ }
+ p = q->next;
+ q->next = q->next->next;
+ /* removing last element of the queue */
+ if (p == q)
+ q = NULL;
+ free(p);
+ return q;
+}
+
+/**
+ * Delete arbitrary element
+ */
+queue qdelete(queue q, qelem e)