Xref: news-dnh.mv.net comp.os.msdos.djgpp:710 Newsgroups: comp.os.msdos.djgpp Path: news-dnh.mv.net!mv!news.sprintlink.net!gatech!newsxfer.itd.umich.edu!news.cic.net!infoserv.illinois.net!madison.tdsnet.com!gail.ripco.com!mambuhl From: mambuhl AT ripco DOT com (Martin Ambuhl) Subject: Replacement for inp() and Sender: usenet AT rci DOT ripco DOT com (Net News Admin) Organization: Ripco Internet BBS Chicago Date: Thu, 29 Jun 1995 09:43:57 GMT Lines: 20 To: djgpp AT sun DOT soe DOT clarkson DOT edu Dj-Gateway: from newsgroup comp.os.msdos.djgpp sl323 AT city DOT ac DOT uk (Mark Lewis) in <1995Jun28 DOT 135748 DOT 8772 AT city DOT ac DOT uk> asks: >Borland and/or Miccysoft C define the I/O functions inp() and outp(). Being >primarily a UNIX developer, and certainly not a user of Borland or Miccysoft >C, I'm not familiar with these functions. DJGPP defines 3 similar functions >in libpc.a (namely inportb(), inportw(), inportl(), along with their >respective output equivalents). Which of these functions should be used to >accurately duplicate the function of inp() and outp() ? int inp(unsigned portid) and int outp(unsigned portid) read/write bytes: unsigned char inportb(int portid) unsigned char outportb(int portid) note the difference in the prototypes. -- * Martin Ambuhl net: mambuhl AT ripco DOT com * Chicago, IL (USA) martin DOT ambuhl AT chessboard DOT com