diff --git a/projet k3/third.h b/projet k3/third.h new file mode 100644 index 0000000000000000000000000000000000000000..d960ea66f1ccd4290d802d358cd78b03b1caff0d --- /dev/null +++ b/projet k3/third.h @@ -0,0 +1,34 @@ +#include "third.c" + +#ifndef THIRD_H +#define THIRD_H + +threadf_t *threadf_init(const char *fn); + +void threadf_destroy(threadf_t *threadf); + +buffer_t *buffer_init(const char *fn); + +void buffer_put(buffer_t *bf, long v); + +long buffer_get(buffer_t *bf); + +void buffer_destroy(buffer_t *bf); + +word_t *word_init(char *str, size_t len); + +word_t *long_to_str(long value); + +void *word_destroy(word_t *word); + +link_t *link_init(void *data); + +void *link_dequeue(link_t **head); + +void link_enqueue(link_t **head, void *data); + +void *consumer(void *arg); + +int normalMode(int n, const char *to_open, const char *to_create); + +#endif \ No newline at end of file