1SYSTEMPAPERNAME(3) Library Functions Manual SYSTEMPAPERNAME(3)
2
3
4
6 systempapername, defaultpapername, systempapersizefile, defaultpaper‐
7 sizefile - return names for managing system paper information
8
10 #include <paper.h>
11
12 const char* systempapername(void)
13 const char* defaultpapername(void)
14
15 const char* systempapersizefile(void)
16 const char* defaultpapersizefile(void)
17
19 systempapername() returns the name of the default paper to be used by a
20 program. This name is obtained by looking in that order at the PAPER‐
21 CONF environment variable, at the contents of the file returned by sys‐
22 tempapersizefile() or by using defaultpapername() as a last chance.
23
24 defaultpapername() returns the name of the default paper to use if it
25 is impossible to get its name from the environment.
26
27 systempapersizefile() returns the path of the papersize file to use.
28 This path is obtained by looking at the PAPERCONF environment variable
29 or by calling defaultpapersizefile().
30
31 defaultpapersizefile returns the path of the default papersize file.
32
34 PAPERSIZE Paper size to use regardless of what the papersize
35 file contains.
36
37 PAPERCONF Full path to a file containing the paper size to
38 use.
39
41 /etc/papersize Contains the name of the system-wide default paper
42 size to be used.
43
45 papersize(5)
46
47
48
49
50 17 September 2001 SYSTEMPAPERNAME(3)