defaultpapername(3paper)

defaultpapername3paper

Return names for managing system paper information

Part of systempapername(3paper).

Synopsys

#include <paper.h>

const char* systempapername(void)
const char* defaultpapername(void)

const char* systempapersizefile(void)
const char* defaultpapersizefile(void)

Overview

systempapersize() returns the name of the default paper to be used by a program. This name is obtained by looking in that order at the PAPERCONF environment variable, at the contents of the file returned by systempapersizefile() or by using defaultpapersize() as a last chance.

defaultpapername() returns the name of the default paper to use if it is impossible to get its name from the environment.

systempapersizefile() returns the path of the papersize file to use. This path is obtained by looking at the PAPERSIZE environment variable or by calling defaultpapersizefile().

defaultpapersizefile returns the path of the default papersize file.

Environment

PAPERCONF

Paper size to use regardless of what the papersize file contains.

PAPERSIZE

Full path to a file containing the paper size to use.

Files

/etc/papersize

Contains the name of the system-wide default paper size to be used.

Releases

5 releases since Debian 1.2 (Rex); the text changed 1 time.

  1. 1.2–1.3
  2. 2.0–2.2

From libpaperg 1.0.3-13.potato1 in Debian 2.2 (Potato). Parsed by carta from the page's man source.