BUT2/DEV/DEV1.1_suite/TP_FILES/chaine.h~

22 lines
362 B
C
Raw Normal View History

2023-10-23 13:23:36 +02:00
#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