PAPERINFO(3)

🌸 NAME 🌸

okay so bestie, welcome to the paperinfo squad πŸ’– β€” this whole little crew is here to give you the tea about a paper:

  • paperinfo
  • paperwithsize
  • paperfirst
  • paperlast
  • papernext
  • paperprev

and what do they all do? they return informations about a paper. that's the vibe. periodt. ✨


πŸŽ€ SYNOPSYS πŸŽ€

(yes the heading is spelled like that in the original and no i will not be fixing it, it's iconic πŸ’…)

#include <paper.h>

const struct paper* paperinfo(const char* papername)
const struct paper* paperwithsize(double psw, double psh)

char*  papername(const struct paper*)
double paperpswidth(const struct paper*)
double paperpsheigth(const struct paper*)

const struct paper* paperfirst(void)
const struct paper* papernext(const struct paper* pinfo)
const struct paper* paperprev(const struct paper* pinfo)
const struct paper* paperlast(void)

πŸ¦‹ DESCRIPTION πŸ¦‹

so like, let's go one by one, bestie, no gatekeeping 🌈

  • paperinfo() β€” hands you a pointer to a struct paper stuffed with informations about the paper whose name is papername. it's giving "tell me everything about this one specific paper" πŸ‘‘
  • paperwithsize() β€” this one goes hunting for a paper whose width and height are psw and psh, measured in PostScript points, and then returns a pointer to a struct paper matching the paper it found. lowkey a scavenger hunt πŸ•΅οΈβ™€οΈ
  • papername() β€” returns the name of a paper, described by an opaque struct paper object. yes opaque, we don't peek inside, we respect privacy 🫢
  • paperpswidth() β€” returns the width, in PostScript points, of a paper described by an opaque struct paper object.
  • paperpsheight() β€” returns the height, in PostScript points, of a paper described by an opaque struct paper object.
  • paperfirst() and paperlast() β€” they return the first and last entries for papers. first one, last one, bookends fr fr πŸ“š
  • and the way you walk through them, entry to entry? that's what papernext() and paperprev() are for, respectively. next and previous, like a little slideshow of papers 🎞️✨
heads up: notice the synopsis says paperpsheigth and the description says paperpsheight. that's just how it is in the original, i'm not touching it, i'm just reporting the facts πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘


and that's the whole page, bestie πŸ’– this one came from the Library Functions Manual, dated 24 September 1996 β€” yes she's vintage, she's classic, she's iconic ✨ go forth and look up your papers πŸŽ€πŸ¦‹πŸ’œ