cupsGetDefault

Name

cupsGetDefault -- Get the default printer or class for the default server.

Synopsis

#include <cups/cups.h>

const char * cupsGetDefault(void);

Description

Get the default printer or class for the default server.

This function returns the default printer or class as defined by the LPDEST or PRINTER environment variables. If these environment variables are not set, the server default destination is returned. Applications should use the cupsGetDests() and cupsGetDest() functions to get the user-defined default printer, as this function does not support the lpoptions-defined default printer.

Return Value

Default printer or NULL