/* imprime.c --------- */ #include #include "tthimage.h" /*::------------------------------------------------------------------::*/ int Image_print_histo_0(long *histo, char *fname, char *texte) { int foo; printf("** %s **\n", texte); for (foo=0; foo<256; foo++) { printf("%7ld ", histo[foo]); if ((foo % 8)==0) printf("\n"); } printf("\n"); return FULL_NUCKED; } /* * je sais même plus pourquoi j'ai commencé cette fonction :) */ /*::------------------------------------------------------------------::*/ void Image_print_sizeof_structs(char *texte) { unsigned short petit; unsigned long grand; unsigned char *ucptr; int foo; if (NULL != texte) { printf("============= %s ============\n", texte); } /* examen du boutisme (ah ah ah) */ petit = 0x1234; printf("petit = %8x -> ", petit); ucptr = (unsigned char *)&petit; for (foo=0; foo<(int)sizeof(petit); foo++) printf(" %02x", ucptr[foo]); printf("\n"); /* trop kikoolol, le boutisme */ grand = 0x12345678; printf("grand = %lx -> ", grand); ucptr = (unsigned char *)&grand; for (foo=0; foo