MCPcopy Create free account
hub / github.com/Hamlib/Hamlib / par_close

Function par_close

src/parallel.c:214–226  ·  view source on GitHub ↗

* \brief Close Parallel Port * \param port */

Source from the content-addressed store, hash-verified

212 * \param port
213 */
214int par_close(hamlib_port_t *port)
215{
216 rig_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__);
217
218#ifdef HAVE_LINUX_PPDEV_H
219#elif defined(HAVE_DEV_PPBUS_PPI_H)
220#elif defined(__WIN64__) || defined(__WIN32__)
221 _close(port->fd);
222
223 return RIG_OK;
224#endif
225 return close(port->fd);
226}
227
228
229/**

Callers 3

rot_closeFunction · 0.85
rig_closeFunction · 0.85
amp_closeFunction · 0.85

Calls 1

rig_debugFunction · 0.85

Tested by

no test coverage detected