PS_NEW2(3)
β¨ PS_NEW2 β¨
okay bestie, gather round, we're doing the pslib.h thing π this one lives in section 3 of the Library Functions Manual, and it's literally the glow-up version of making a PostScript document. no cap.
πΈ NAME πΈ
PS_new2 β creates a new PostScript document object π
π¦ SYNOPSIS π¦
#include <pslib.h>
PSDoc * PS_new2((void (*errorhandler)(PSDoc *p, int type, const char
*msg), void* (*allocproc)(PSDoc *p, size_t size, const char *caller),
void* (*reallocproc)(PSDoc *p, void *mem, size_t size, const char
*caller), void (*freeproc)(PSDoc *p, void *mem), void *opaque)
π DESCRIPTION π
so the way this works is: it creates a brand new document instance β¨ That's it. That's the whole vibe. It does not create the file on disk, and it does not create it in memory either β it just sets everything up. like, the scaffolding, the whole backstage, no actual performance yet π
and here's the fun part, bestie: you can pass in your own error handler and your own memory management functions π
If you pass NULL values, the internal default handler and functions get used instead. and if that's your plan, then honestly you may as well just call PS_new(3) instead, because you're doing the same thing with extra steps π
β RETURN VALUE β
A pointer to the new instance of the PostScript document π β or NULL on failure π (yes, check it, don't be that girl).
π SEE ALSO π
π AUTHOR π
This manual page was written by Uwe Steinmann uwe@steinmann.cx. iconic of him fr fr π«Ά
and that's the whole page, bestie β section 3, Library Functions Manual, PS_new2(3) energy from start to finish π go set up your document, you've got this, periodt πΈ
π¦ 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