PS_OPEN_FP(3)

hey bestie, welcome to the PS_OPEN_FP(3) page β€” it's from the Library Functions Manual and it's giving "use an already-open file pointer as your output file" energy. ✨

πŸ’– NAME πŸ’–

PS_open_fp β€” uses an already open file pointer as the output file. periodt.


✨ SYNOPSIS ✨

#include <pslib.h>

int PS_open_fp(PSDoc *psdoc, FILE *fp)

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so PS_open_fp takes the file pointer you pass in and uses it as an output file. that's the whole vibe. πŸ’…

The file will not be closed by PS_close(3). so don't go expecting PS_close(3) to clean it up β€” it literally won't, no cap.


🌸 RETURN VALUE 🌸

Returns -1 in case of an error and 0 otherwise. fr fr, that's it.


πŸŽ€ SEE ALSO πŸŽ€


πŸ‘‘ AUTHOR πŸ‘‘

This manual page was written by Uwe Steinmann uwe@steinmann.cx.


and the footer? it's literally just PS_OPEN_FP(3) again β€” no source/version/date drama in this one, just the manual tag doing its little encore. stay iconic, bestie πŸ’–βœ¨

πŸ“¦ where this page comes from