From: Simone Piccardi Date: Sun, 17 Aug 2003 12:20:44 +0000 (+0000) Subject: Aggiunto programma di test per l'endianess X-Git-Url: https://gapil.gnulinux.it/gitweb/?p=gapil.git;a=commitdiff_plain;h=571305d265d04aec0e35182ff17197043757e14a Aggiunto programma di test per l'endianess --- diff --git a/sources/Makefile b/sources/Makefile index 82ae8e4..1e4b12c 100644 --- a/sources/Makefile +++ b/sources/Makefile @@ -88,8 +88,10 @@ ipctestid: IPCTestId.c writeshm: WriteShm.c $(CC) $(CFLAGJ) $^ -o $@ -#readshm: ReadShm.c -# $(CC) $(CFLAGJ) $^ -o $@ +endtest: endtest.c + +readshm: ReadShm.c + $(CC) $(CFLAGJ) $^ -o $@ # Macro per la generazione della tarball dei sorgenti diff --git a/sources/endtest.c b/sources/endtest.c new file mode 100644 index 0000000..ffeca88 --- /dev/null +++ b/sources/endtest.c @@ -0,0 +1,13 @@ +#include +int main(int argc, char *argv[]) +{ + int i, val = 0xABCDEF01; + char * ptr; + + printf("Using value %X\n", val); + ptr = (char *) &val; + for (i=0; i