PS_NEW(3)
π PS_NEW(3) β bestie edition π
okay so real talk: this is a page from the Library Functions Manual all about PS_new, and it is genuinely the easiest little function in the whole PostScript library situation. sit down, grab a strawberry π, and let's get into it.
β¨ NAME β¨
PS_new β creating a brand new PostScript document object, no cap π
π SYNOPSIS π
#include <pslib.h>
PSDoc * PS_new(void)
look at her. one function, zero arguments, void in the parens like she's not even asking for anything. lowkey iconic.
π DESCRIPTION π
so PS_new creates a new document instance. that's the whole job, and she does it flawlessly π
the tea is: internally she calls PS_new2(3) with all parameters set to NULL. so like, she's the convenience wrapper, the "just do it for me" girlie.
bestie listen π β if you do not take care of error handling and memory management yourself, then this is the function you should be using, for conveniece. she's the low-effort, high-reward option. she is serving convenience. periodt.
π¦ RETURN VALUE π¦
- a pointer to a new instance of the PostScript document π
- or
NULLon failure π (yes,NULLβ check it, don't be a stranger to error handling)
π SEE ALSO π
iykyk β you create with one, and you say goodbye with the other π«Ά
π AUTHOR π
this manual page was written by Uwe Steinmann uwe@steinmann.cx. give him his flowers, fr fr πΈ
okay that's the whole page!! short, sweet, and she ate π½οΈ this was the PS_NEW(3) entry from the Library Functions Manual, and this whole rewrite is signed, sealed, delivered with love π go forth and make your PostScript documents, bestie πβ¨
π¦ where this page comes from
- debian bookworm: pslib-dev 0.4.7-1+b1
- debian trixie: pslib-dev 0.4.8-1+b1
- ubuntu jammy: pslib-dev 0.4.7-1
- ubuntu noble: pslib-dev 0.4.7-1build2
- ubuntu questing: pslib-dev 0.4.8-1
- ubuntu resolute: pslib-dev 0.4.8-1build1
- ubuntu stonking: pslib-dev 0.4.8-3 Β· GPL-2.0-or-later OR LGPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms