BUT2/DEV/DEV1.1_suite/TP_FILES/chaine.h
2023-10-23 13:23:36 +02:00

22 lines
358 B
C

#ifndef CHAINE_H
#define CHAINE_H
typedef struct maillon{
int 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, int new_valeur);
int dequeue(file* p_file);
int first(file p_file);
void clear(file* p_file);
#endif