22 lines
362 B
C
22 lines
362 B
C
#ifndef CHAINE_H
|
|
#define CHAINE_H
|
|
|
|
typedef struct maillon{
|
|
char valeur;
|
|
struct maillon* suivant;
|
|
} maillon;
|
|
|
|
typedef struct file{
|
|
maillon* debut;
|
|
maillon* fin;
|
|
}file;
|
|
|
|
void creerFile(file* p_file);
|
|
int empty(file p_file);
|
|
void enqueue(file* p_file, char new_valeur);
|
|
char dequeue(file* p_file);
|
|
char first(file p_file);
|
|
void clear(file* p_file);
|
|
|
|
#endif
|