[complement-svn] SF.net SVN: complement: [1352] trunk/explore/inquiry/shades
Status: Pre-Alpha
Brought to you by:
complement
From: <com...@us...> - 2006-11-01 12:39:20
|
Revision: 1352 http://svn.sourceforge.net/complement/?rev=1352&view=rev Author: complement Date: 2006-11-01 04:39:10 -0800 (Wed, 01 Nov 2006) Log Message: ----------- shades sign conversions Added Paths: ----------- trunk/explore/inquiry/shades/sign/ trunk/explore/inquiry/shades/sign/Makefile trunk/explore/inquiry/shades/sign/Makefile.inc trunk/explore/inquiry/shades/sign/char.c Property changes on: trunk/explore/inquiry/shades/sign ___________________________________________________________________ Name: svn:ignore + obj Added: trunk/explore/inquiry/shades/sign/Makefile =================================================================== --- trunk/explore/inquiry/shades/sign/Makefile (rev 0) +++ trunk/explore/inquiry/shades/sign/Makefile 2006-11-01 12:39:10 UTC (rev 1352) @@ -0,0 +1,8 @@ +# -*- Makefile -*- Time-stamp: <04/01/09 16:53:50 ptr> + +SRCROOT := ../../.. +COMPILER_NAME := gcc + +include Makefile.inc +include ${SRCROOT}/Makefiles/top.mak + Added: trunk/explore/inquiry/shades/sign/Makefile.inc =================================================================== --- trunk/explore/inquiry/shades/sign/Makefile.inc (rev 0) +++ trunk/explore/inquiry/shades/sign/Makefile.inc 2006-11-01 12:39:10 UTC (rev 1352) @@ -0,0 +1,4 @@ +# -*- makefile -*- Time-stamp: <04/01/12 15:37:40 ptr> + +PRGNAME = test +SRC_C = char.c Added: trunk/explore/inquiry/shades/sign/char.c =================================================================== --- trunk/explore/inquiry/shades/sign/char.c (rev 0) +++ trunk/explore/inquiry/shades/sign/char.c 2006-11-01 12:39:10 UTC (rev 1352) @@ -0,0 +1,14 @@ +#include <stdio.h> + +int main() +{ + char c1 = 0xff; + char c2 = 0xff; + + unsigned int ui1 = (unsigned)c1; + unsigned ui2 = (unsigned)c2; + + printf( "%x\n", ui1 ); + + return 0; +} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |