5.1.5 Is empty

It is easy to check if a stack is empty:

int Stack_isempty(struct Stack *pStack)
{
  return List_isempty(((struct _Stack *)pStack)->pList);
}



Copyright © 2006-10-23 by Tak Auyeung