Mercurial > hg > CbC > old > device
diff test/cext.c @ 353:41ed77cb9c67 nametbl-done
name table reogranization, extendable cheap done.
author | kono |
---|---|
date | Sat, 03 Jul 2004 13:53:37 +0900 |
parents | |
children | 0c256ea2a97e |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/cext.c Sat Jul 03 13:53:37 2004 +0900 @@ -0,0 +1,21 @@ + +unsigned int u; + +main() +{ + int i,k; unsigned uk; + + for(i=-3;i<4;i++) { + k = (char) i; + uk = (unsigned char) i; + printf("%d %u\n",k,uk); + k = (short) i; + uk = (unsigned short) i; + printf("%d %u\n",k,uk); + } + u = (unsigned) -23432; + + printf("%d\n",u/(8048+5)); + return 0; +} +