#include <stdio.h>
#include <stdlib.h>
#include "extra.h"
#include "chaine.h"

double top (const maillon* debut){
    return debut->valeur;
}

void clear (maillon** debut){
    while (empty(*debut)){
        pop(debut);
    }
}