Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
832 B
1
Indexable
Never
#ifndef DISCIPLINA_H
#define DISCIPLINA_H

typedef struct Disciplina {
    char denumirea[50];
    int anul;
    char facultatea[50];
    char departamentul[50];
    int numarOre;
    struct Disciplina* next;
} Disciplina;

Disciplina* creareDisciplina(char denumirea[], int anul, char facultatea[], char departamentul[], int numarOre);
void introducereDisciplina(Disciplina** head_ref);
void afisareDisciplina(Disciplina* head);
Disciplina* cautareDisciplina(Disciplina* head, char denumirea[]);
void modificareDisciplina(Disciplina* head);
Disciplina* ultimulElement(Disciplina* head);
int lungimeLista(Disciplina* head);
void interschimbareElemente(Disciplina** head_ref, char denumirea1[], char denumirea2[]);
void sortareLista(Disciplina** head_ref);
void eliberareMemorie(Disciplina** head_ref);

#endif