if (S == NULL) return ERROR; e = S->data; p = S; S = S->next; delete p; return OK;
if (S != NULL) return S->data;