PX_GeT_DATA_DOUBLE(3)
π PX_GeT_DATA_DOUBLE π
okay so bestie, this is a page from the Library Functions Manual β yes the PX_GeT_DATA_DOUBLE(3) one, the lowercase-coded legend herself. sit down, grab a strawberry π, we're decoding double data fields together.
β¨ NAME β¨
PX_get_data_double β grab a double data field, no cap
π SYNOPSIS π
#include <paradox.h>
int PX_get_data_double(pxdoc_t *pxdoc, char *data, int len, double
*value)
πΈ DESCRIPTION πΈ
so what this girlie does is she takes a data field exactly the way it's stored in the database file and converts it into a double for the host architecture. like, translation services but for bytes. π¦
and listen β you should use this function instead of just reaching into the data yourself with your bare hands. do not touch the raw data directly, bestie, that's not your business, that's her job. π
now, data points to the start of the data field inside the record. and here's the part where you have to do math (sorry, i know π): you have to calculate that pointer by summing up all field length before the field to operate on and adding that sum to the base pointer of the record. that's the whole recipe. no shortcuts.
Note: β οΈ this function is deprecated and obsolete ifPX_retrieve_record(3)is used. like, if you're already on thePX_retrieve_record(3)train, this one's giving retired. periodt.
π RETURN VALUE π
0β the value isNULL-1β an error happened π¬1β otherwise, we slayed β¨
π SEE ALSO π
the whole squad, fr fr π«Ά
π AUTHOR π
this manual page was written by Uwe Steinmann uwe@steinmann.cx. iconic behavior, honestly.
and that's the tea π this has been the PX_GeT_DATA_DOUBLE(3) page, living her best life in the Library Functions Manual β mwah, go convert something πβ¨
π¦ 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