PX_DELETE_RECORD(3)
π PX_DELETE_RECORD(3) π
okay bestie, so this is a page from the Library Functions Manual, and it's all about PX_delete_record β the little function that says "bye bye" to a record in a Paradox file. no cap. π¦
πΈ NAME πΈ
PX_delete_record β removes a record from a Paradox file π
β¨ SYNOPSIS β¨
#include <paradox.h>
int PX_delete_record(pxdoc_t *pxdoc, int recpos)
π DESCRIPTION π
okay so listen. This one deletes the record with number recpos from the Paradox file. and here's the thing β the first record has number 0. so we're zero-indexed around here, that's just the vibe. π
The data of that record gets wiped out, like, gone gone. it becomes literally impossible to reconstruct it later. so if you delete it, that's your final answer, no takebacks, periodt. π
After that, the data block where the record used to live gets reconstructed, so that all the records sit nice and tidy at the beginning of the data block, followed by the free space. it's giving "cleaning up your room before your mom comes in" energy. β¨
And a cute little follow-up: calls to PX_insert_record(3) will use the first datablock with free space and add the new record after the records in the data block. so the freed space does get recycled, iykyk. π«Ά
π₯ RETURN VALUE π₯
Returns 0 on success or -1 on failure. that's it, that's the whole vibe check. π
π SEE ALSO π
π AUTHOR π
This manual page was written by Uwe Steinmann uwe@steinmann.cx. thank you for your service king π
so yeah, that's PX_delete_record(3) β a page from the Library Functions Manual. take care of your records bestie, deleting is forever π
π¦ 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