struct nodo{
int dato;
struct nodo *next;
}
struct nodo *pila = NULL;
void crearNodo(int nDato, struct nodo *aux){
aux = (struct node *) malloc(sizeof(struct nodo));
aux->dato = nDato;
aux->next = NULL;
}
void push(strut nodo *aux, struct nodo *pila){
aux->next = pila;
pila = aux;
}
void pop(struct *nodo pila){
struct nodo *aux;
if( pila == NULL )
printf("La pila esta vacia\n");
else{
aux = pila;
pila = pila->next;
free(aux)
}
}