24 lines
339 B
C
24 lines
339 B
C
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
#include "pile.h"
|
|
#include "symbole.h"
|
|
|
|
void DROP(struct Pile *P)
|
|
{
|
|
struct Cell * tmp;
|
|
if(P->nbElements != 0)
|
|
{
|
|
tmp = P->Pil;
|
|
P->Pil = P->Pil->Suiv;
|
|
free(tmp);
|
|
}
|
|
}
|
|
|
|
void DUP(struct Pile * P)
|
|
{
|
|
struct Cell * double;
|
|
double = malloc(sizeof(struct))
|
|
}
|
|
|
|
|