From: "Santosh . H" Newsgroups: comp.os.msdos.djgpp Subject: Why dose'nt this work ?? Date: Sat, 08 Jan 2000 12:22:20 +0530 Organization: VSNL Lines: 40 Message-ID: <3876DEA4.427EFD1F@giasbgc.vsnl.net.in> NNTP-Posting-Host: 203.197.183.62 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news.vsnl.net.in 947351415 3241 203.197.183.62 (8 Jan 2000 17:10:15 GMT) X-Complaints-To: postmaster AT news DOT vsnl DOT net DOT in NNTP-Posting-Date: 8 Jan 2000 17:10:15 GMT X-Mailer: Mozilla 4.04 [en] (WinNT; I) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi Gurus, Helpp!. Could someone please tell me why this bit o code prints nothing.All this is supposed to do is to read in values direct from com port and print 'em out X-------------------------------------------------------------------------------------X /*mouse .c*/ #include #include #define LEFT_BT_MASK 64 #define RIGHT_BT_MASK 32 void main() { char input[4]; for(;;){ input[0] = inportl(0x2f8); input[1] = inportl(0x2f8); input[2] = inportl(0x2f8); input[3] = inportl(0x2f8); printf("%c\n",input[2]); if(kbhit()) { break; } } } X--------------------------------------------------------------------------------------X Thanx in advance . Santosh