manpagez: man pages & more
man defaultpapername(3)
Home | html | info | man
systempapername(3)                                          systempapername(3)




NAME

       systempapername,  defaultpapername,  systempapersizefile, defaultpaper-
       sizefile - return names for managing system paper information


SYNOPSYS

       #include <paper.h>

       systempapername(3)
       const char* defaultpapername(void)

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


DESCRIPTION

       systempapername(3) returns the name of the default paper to be used by a
       program.   This name is obtained by looking in that order at the PAPER-
       CONF environment variable, at the contents of the file returned by sys-
       tempapersizefile() or by using defaultpapername() 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 PAPERCONF environment variable
       or by calling defaultpapersizefile().

       defaultpapersizefile returns the path of the default papersize file.


ENVIRONMENT

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

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


FILES

       ${prefix}/etc/papersize
                           Contains the name of the system-wide default  paper
                           size to be used.


SEE ALSO

       papersize(5)




                               17 September 2001            systempapername(3)

libpaper 1.1.24 - Generated Fri Apr 15 16:43:36 CDT 2011
© manpagez.com 2000-2024
Individual documents may contain additional copyright information.