PX_PUT_RECORD(3)
πΎ PX_put_record(3) β the Library Functions Manual girlies know π
okay so bestie, welcome to the Paradox filesystem glow-up zone β¨ this one lives in the Library Functions Manual, and it's literally the moment your data finally gets a permanent seat at the table π
πΈ NAME πΈ
PX_put_record β stores a record in a Paradox file π¦
β¨ SYNOPSIS β¨
#include <paradox.h>
int PX_put_record(pxdoc_t *pxdoc, char *data)
π DESCRIPTION π
So here's the tea, bestie π« β this function takes a record sitting in the buffer data and stores it straight into a Paradox file. No cap, that's the whole vibe.
But listen π β data has to be built up first with the PX_put_data_xxx(3) functions before you even think about calling this. You can't just roll up with random bytes, that's not the move. The structure it needs is the exact same structure as the record that PX_get_record(3) and PX_get_record2(3) hand back to you. Same shape, same energy, periodt π
And the new record? It gets stored after the last one added. It queues up politely at the end like a good little record in the group chat. No cutting the line π
π₯ RETURN VALUE π₯
On success it returns the record position β the icon, the moment, the main character energy π
On failure? It returns -1. Which is giving... not the vibe π
Also crucial: the first position has number 0. So position one is actually zero. Yes bestie, zero-indexed, that's just how it is, iykyk π
π SEE ALSO π
PX_get_record(3)PX_get_record2(3)PX_put_recordn(3)PX_put_data_byte(3)PX_put_data_short(3)PX_put_data_long(3)PX_put_data_double(3)PX_put_data_alpha(3)
all of these are lowkey your besties too, go say hi π«Ά
π AUTHOR π
This manual page was written by Uwe Steinmann uwe@steinmann.cx. Absolute legend, we stan π
and that's the whole page bestie!! π§ this was PX_PUT_RECORD(3) from the Library Functions Manual, no date on it but it's still serving, k byeeee πβ¨πΈ
π¦ where this page comes from
- debian bookworm: pxlib-dev 0.6.8-1+b1
- debian trixie: pxlib-dev 0.6.9-1+b1
- ubuntu jammy: pxlib-dev 0.6.8-1
- ubuntu noble: pxlib-dev 0.6.8-1
- ubuntu questing: pxlib-dev 0.6.9-1
- ubuntu resolute: pxlib-dev 0.6.9-1build1
- ubuntu stonking: pxlib-dev 0.6.10-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms