Xref: news-dnh.mv.net comp.os.msdos.djgpp:748 Path: news-dnh.mv.net!mv!news.sprintlink.net!cam.news.pipex.net!pipex!edi.news.pipex.net!pipex!sunic!sunic.sunet.se!trane.uninett.no!nac.no!news.kth.se!admin.kth.se!merope.saaf.se!electra.saaf.se!not-for-mail From: pausch AT electra DOT saaf DOT se (Paul Schlyter) Newsgroups: comp.os.msdos.djgpp Subject: Re: Replacement for inp() and outp() ? Date: 1 Jul 1995 11:21:36 +0200 Organization: Svensk Amat|rAstronomisk F|rening Lines: 23 References: <1995Jun28 DOT 135748 DOT 8772 AT city DOT ac DOT uk> Nntp-Posting-Host: electra.saaf.se To: djgpp AT sun DOT soe DOT clarkson DOT edu Dj-Gateway: from newsgroup comp.os.msdos.djgpp In article <1995Jun28 DOT 135748 DOT 8772 AT city DOT ac DOT uk>, Mark Lewis wrote: > 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() ? Try: #define inp(port) inportb(port) #define outp(port,val) outportb(port,val) Note that Borland C also define inportb and inportw along with their respective output equivalents. -- ---------------------------------------------------------------- Paul Schlyter, Swedish Amateur Astronomer's Society (SAAF) Nybrogatan 75 A, S-114 40 Stockholm, SWEDEN e-mail: pausch AT saaf DOT se paul DOT schlyter AT ausys DOT se