SYSTEMPAPERNAME(3)
π SYSTEMPAPERNAME π
okay so bestie, this is a <paper.h> girly through and through β it lives in the Library Functions Manual at section 3 (the "function" section, iykyk). she's not a program you run, she's a little squad of four functions that tell your code which paper size to use and where to go find that info. lowkey iconic. no cap. π
β¨ SYNOPSYS β¨
(not me spelling it exactly how the original does, periodt π )
#include <paper.h>
const char* systempapername(void)
const char* defaultpapername(void)
const char* systempapersizefile(void)
const char* defaultpapersizefile(void)
πΈ DESCRIPTION πΈ
okay so here's the tea, four functions, four vibes, all of them returning const char*:
systempapername()β returns the name of the default paper to be used by a program. the way she figures that out is a whole journey: she looks at thePAPERCONFenvironment variable first, then at the contents of the file returned bysystempapersizefile(), and if all of that flops, she falls back todefaultpapername()as a last chance. three chances, main character energy fr fr.defaultpapername()β returns the name of the default paper to use when it's literally impossible to get the paper name from the environment. she's the safety net bestie. π«Άsystempapersizefile()β returns the path of thepapersizefile to use. she gets that path by checking thePAPERCONFenvironment variable, or by callingdefaultpapersizefile()if that doesn't pan out.defaultpapersizefileβ returns the path of the defaultpapersizefile. yes, the original description doesn't write the empty parens, and we're keeping it exactly that way, no edits, we don't fix other people's fits. π
π ENVIRONMENT π
PAPERSIZEβ Paper size to use regardless of what thepapersizefile contains. she said "I don't care what the file says", and honestly? respect.PAPERCONFβ Full path to a file containing the paper size to use. give her the whole path, not a little hint, the full path. π
π¦ FILES π¦
/etc/papersizeβ Contains the name of the system-wide default paper size to be used.
π SEE ALSO π
papersize(5)β go read that one too bestie, it's the whole lore drop on the file format. π§
and that's the whole page!! β¨ written on 17 September 2001 by the fine folks behind this Library Functions Manual, and this little rewrite is just the same facts with a much cuter outfit. stay slay, stay const char*. ππ
π¦ where this page comes from
- centos-stream 9: libpaper-devel 1.1.28-4.el9 Β· GPLv2
- centos-stream 9: libpaper-devel 1.1.28-4.el9 Β· GPLv2
- debian bookworm: libpaper-dev 1.1.29
- ubuntu jammy: libpaper-dev 1.1.28build2
- ubuntu noble: libpaper-dev 1.1.29build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms