#ifndef libbmp_H #define libbmp_H #include #include #include #include typedef unsigned char byte; FILE *fopen (const char *path, const char *mode); size_t fread (void *ptr, size_t size, size_t nmemb, FILE *stream); int fseek (FILE *stream, long offset, int whence); long ftell (FILE *stream); void rewind (FILE *stream); void *calloc (size_t nmemb, size_t size); void free (void *ptr); int fclose(FILE *stream); byte *readFile (char *path, unsigned int *size); int writeFile (char *path, byte *array, unsigned int size); size_t fwrite(const void *ptr, size_t size, size_t nmemb, FILE *stream); int readValue (byte *array, int length, unsigned int *value); byte *readImg (char *path, unsigned int *size); int writeImg (char *path, byte *pix, unsigned int size); unsigned int puissance(unsigned int valeur, int i); #endif