PS_DELETE(3)
π NAME
PS_delete β deletes every last resource of a PostScript document. all of them. gone. it's giving "spring cleaning but for memory" π§Ήβ¨
(also hi bestie, this page lives in the Library Functions Manual, section 3, so it's a library function situation, not a command you type into your shell, ok? iykyk)
β¨ SYNOPSIS
#include <pslib.h>
void PS_delete(PSDoc *psdoc)
π DESCRIPTION
okay so the main character job of this function is freeing the memory that the document was using. that's the whole vibe. π«Ά
it also closes a file, but only if that file wasn't already closed before with PS_close(3). so it's like a backup plan, a little safety net, bestie behavior honestly.
BUT. you should still close the file withPS_close(3)first, before you call this. and here's why, because it matters:PS_close(3)doesn't just close the file β it also writes out a last line containing the PostScript comment with the number of pages in the document. π
and if that comment isn't there? a PostScript viewer may not show the number of pages properly. like, the page count just won't display right. so do the PS_close(3) first, fr fr. π
π SEE ALSO
PS_close(3)β the one you should be calling first, bestie π«
π AUTHOR
this manual page was written by Uwe Steinmann uwe@steinmann.cx. thank you for your service, king π
and that's the whole page, babes π¦ β this was PS_DELETE(3), hanging out in section 3 of the Library Functions Manual. go free that memory and close your files properly π β¨πΈ
π¦ 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