aboutsummaryrefslogtreecommitdiff
path: root/semestre 3/structures des données/tme/tme3-5/exo1/biblioLC.h
blob: 4db05fed8a6167ab145b42f51ebc266bfa21173d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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