---
name: "ieee1284_close"
section: "3"
platform: "linux"
package: "libieee1284"
version: "0.2.11-19"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/ieee1284_close"
---

# ieee1284\_close(3)

close an open port

## NAME

ieee1284\_close - close an open port

## SYNOPSIS

```
#include <ieee1284.h>
```

**int ieee1284\_close(struct parport \****port***);**

## DESCRIPTION

To close an open port and free any resources associated with it, call **ieee1284\_close**.

## RETURN VALUE

**E1284\_OK**

The port is now closed.

**E1284\_INVALIDPORT**

The *port* parameter is invalid (perhaps it is not open, for instance).

**E1284\_SYS**

There was a problem at the operating system level. The global variable *errno* has been set appropriately.

## SEE ALSO

[**ieee1284\_open**(3)](/ieee1284_open/3.md)

## AUTHOR

**Tim Waugh** \<twaugh@redhat.com\>

Author.

## COPYRIGHT

Copyright © 2001-2003 Tim Waugh\
