[ctypes-commit] ctypes/ctypes/test endian.c,1.1.2.1,1.1.2.2
Brought to you by:
theller
From: Thomas H. <th...@us...> - 2005-11-18 14:43:40
|
Update of /cvsroot/ctypes/ctypes/ctypes/test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20234 Modified Files: Tag: endian_branch endian.c Log Message: *** empty log message *** Index: endian.c =================================================================== RCS file: /cvsroot/ctypes/ctypes/ctypes/test/Attic/endian.c,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -C2 -d -r1.1.2.1 -r1.1.2.2 *** endian.c 18 Nov 2005 14:33:47 -0000 1.1.2.1 --- endian.c 18 Nov 2005 14:43:32 -0000 1.1.2.2 *************** *** 14,17 **** --- 14,20 ---- int main(int argc, char **argv) { + unsigned char *p; + int i; + n.N1 = 1; n.N2 = 2; *************** *** 23,26 **** n.N8 = 8; ! printf("%08X\n", n); } --- 26,33 ---- n.N8 = 8; ! p = (unsigned char *)&n; ! ! for (i = 0; i < 4; ++i) ! printf("%02X ", p[i]); ! printf("\n"); } |