Logo Search packages:      
Sourcecode: hamlib version File versions  Download package

int par_close ( hamlib_port_t port  ) 

Close Parallel Port.

Parameters:
port 

Definition at line 150 of file parallel.c.

References hamlib_port_t::fd, and RIG_OK.

Referenced by port_close(), and rot_close().

{
#ifdef HAVE_LINUX_PPDEV_H
#elif defined(HAVE_DEV_PPBUS_PPI_H)
#elif defined(WIN32)
      CloseHandle((HANDLE)(port->fd));
      return RIG_OK;
#endif
      return close(port->fd);
}


Generated by  Doxygen 1.6.0   Back to index