---
name: "libprinterconf"
section: "3"
platform: "linux"
package: "libprinterconf-dev"
version: "0.5-12"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/libprinterconf"
---

# libprinterconf(3)

A C library of routines for autodetecting printers in Linux

## NAME

libprinterconf - A C library of routines for autodetecting printers in Linux

## SYNOPSIS

Libprinterconf is a C library for autodetecting printers from Linux.

It currently supports two methods of autodetection: parallel port detection and network detection.

The following functions are available:

**pconf\_detmethod\_t \*pconf\_get\_detection\_methods (int** *\*count***);**\
 **char \*\* pconf\_detect\_printer (int** *dettype***, char** *\*detinfo***);**\
 **char \* pconf\_autodetect\_pport (long int** *port***);**

## DESCRIPTION

Each of these is described in detail in its own man page. Of most interest is pconf\_detect\_printer(). This function will execute one of the detection methods and return an array of character strings, each representing a single detected printer.

The actual format of these strings will depend on the detection method. For parallel port detection, the string will be in the basic form: "port=p;model=m". For a network printer the form is: "printer=hostaddr;vendor=v;model=m".

This library is intended for use by printer detection and configuration tools.

## SEE ALSO

[pconf\_detect(6)](/pconf_detect/6.md), [pconf\_detect\_printer(3)](/pconf_detect_printer/3.md),\
 [pconf\_get\_detection\_methods(3)](/pconf_get_detection_methods/3.md), [pconf\_autodetect\_pport(3)](/pconf_autodetect_pport/3.md),\
 pconf\_read\_xref\_file(3), pconf\_find\_xref\_by\_id(3)
