#include "linklist.h"
extern void *ll_delete_head (LINKLIST *list);
extern void *ll_delete_tail (LINKLIST *list);
extern void *ll_tail (LINKLIST *list);
extern void *ll_head (LINKLIST *list);
/* head of list = top of deque */
/* tail of list = bottom of deque */
void *dq_pop (DEQUE *dq)
{
return ll_delete_head (dq);
}
void *dq_top (DEQUE *dq)
{
return ll_head (dq);
}
void *dq_eject (DEQUE *dq)
{
return ll_delete_tail(dq);
}
void *dq_bottom (DEQUE *dq)
{
return ll_tail (dq);
}
沒有留言:
張貼留言