projects
/
gapil.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3795194
)
Prova di endianess
author
Simone Piccardi
<piccardi@gnulinux.it>
Sat, 16 Aug 2003 17:36:03 +0000
(17:36 +0000)
committer
Simone Piccardi
<piccardi@gnulinux.it>
Sat, 16 Aug 2003 17:36:03 +0000
(17:36 +0000)
sources/endian.c
patch
|
blob
|
history
diff --git
a/sources/endian.c
b/sources/endian.c
index 1e71896708073f72b278c81eca8988eff26bde9b..3c79ab06a9415468d7f959c57ec917bd0b27a14d 100644
(file)
--- a/
sources/endian.c
+++ b/
sources/endian.c
@@
-23,7
+23,7
@@
* Author: S. Piccardi
* May. 2003
*
- * $Id: endian.c,v 1.
1 2003/06/01 21:41:28
piccardi Exp $
+ * $Id: endian.c,v 1.
2 2003/08/16 17:36:03
piccardi Exp $
*
***************************************************************/
#include <stdio.h>
@@
-44,6
+44,7
@@
int main(int argc, char *argv[])
char_ptr = (char *) &val;
for (i=0; i<sizeof(int); i++) {
char_ptr[i] = buf[i];
+ printf("i=%d, val=%x\n", i, buf[i]);
}
printf("Value %x\n", val);
return 0;