diff --git a/projet_3.h b/projet_3.h index 1ee6af6666779af6300d75d7469a0d2c304c724c..e495e715e72bee59b44c4b0ac2e1864a11b977dd 100644 --- a/projet_3.h +++ b/projet_3.h @@ -1,12 +1,21 @@ -#ifndef PROJET -#define PROJET +//#ifndef +// -int is_div(int number, int i); -int is_prime(int number); -list_t *init_node(int value, struct list *list); -void add_node(list_t *list, int value); -list_t * prime_divs(int number); -void *afficherListe(list_t *liste); -void ecrire_dans_fichier(char *input, char *output); +int is_div(int number, int i) ; +int is_prime(int number) ; +// travail en likendList +typedef struct node { // creation d'un node + struct node *next; // prochain + int *nombre_premier; // nombre_premier +}node_t; -#endif \ No newline at end of file +typedef struct list { + int size; // taille de mon noeud + node_t *head ; // tete de mon noeud +} list_t; +list_t *init_node(int value, struct list *list) ; +void add_node(list_t *list, int value) ; +list_t * prime_divs(int number) ; +void *afficherListe(list_t *liste) ; +void lecrire_dans_fichier(char *input, char *output) ; +void ecrire_dans_fichier(char *input, char *output) ;