diff options
Diffstat (limited to 'semestre 3/structures des données/tme/tme3-5/exo1/biblioLC.h')
| -rw-r--r-- | semestre 3/structures des données/tme/tme3-5/exo1/biblioLC.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/semestre 3/structures des données/tme/tme3-5/exo1/biblioLC.h b/semestre 3/structures des données/tme/tme3-5/exo1/biblioLC.h new file mode 100644 index 0000000..4db05fe --- /dev/null +++ b/semestre 3/structures des données/tme/tme3-5/exo1/biblioLC.h @@ -0,0 +1,41 @@ +#ifndef BIBLIO_LC_H + +typedef struct livre{ + int num; + char* titre; + char* auteur; + struct livre* next; +} Livre; + +typedef struct biblio{ + Livre* L; +} Biblio; + +Livre* creer_livre(int num,char* titre,char* auteur); + +void liberer_livre(Livre* l); + +Biblio* creer_biblio(); + +void liberer_biblio(Biblio* b); + +void inserer_en_tete(Biblio* b,int num,char* titre,char* auteur); + +Biblio* rechercher_doublons(Biblio* bib); + +void afficher_livre(Livre* l); + +void afficher_biblio(Biblio* b); + +Livre* rechercher_biblio_num(Biblio* bib, int num); + +Livre* rechercher_biblio_titre(Biblio* bib, char* titre); + +Biblio* rechercher_biblio_auteur(Biblio* bib, char* auteur); + +void suppression_livre(Biblio* bib, int num, char* titre, char* auteur); + +Biblio* rechercher_doublons(Biblio* bib); + +#endif // BIBLIO_LC_H + |
