PX_UPDATE_RECORD(3)
π PX_UPDATE_RECORD β Library Functions Manual (section 3, bestie) π
okay so picture this: you're in the middle of a Paradox file, you've got a record sitting there, and it's just... not it anymore. Enter PX_update_record. β¨
β¨ NAME β¨
PX_update_record β updates an existing record in the Paradox file π¦
(yes, the original page said "exiting" and honestly? a record that's exiting the chat is exactly what we're replacing, so it still ate π )
πΈ SYNOPSIS πΈ
#include <paradox.h>
int PX_update_record(pxdoc_t *pxdoc, pxval_t **data, int recpos)
π DESCRIPTION π
So basically: this function overwrites a record in the database with whatever data you've got sitting in the array dataptr. iconic behaviour, no notes. π
The record you're clapping back at has to be specified by its record number, which you pass in as the parameter recpos. And heads up bestie β the first record has number 0. zero-indexed queen, we been knew. π
The memory for dataptr can be freed after PX_update_record has been called. so like, you don't have to hold onto it forever, she's done with it, let her go π«Ά
For more info on how to build up the record data, check the documentation of PX_insert_record(3) π
β RETURN VALUE β
- Returns
0on success π - Returns
-1on failure π
π SEE ALSO π
π AUTHOR π
This manual page was written by Uwe Steinmann <uwe@steinmann.cx>. π
and that's the whole page bestie, we ate and left absolutely no crumbs β this one's from the <strong>Library Functions Manual</strong>, section <strong>3</strong>, filed under <strong>PX_UPDATE_RECORD(3)</strong>. go update something gorgeous, ily, mwah πβ¨
π¦ 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