PX_SET_PARAMETER(3)

πŸ’– PX_SET_PARAMETER(3) πŸ’–

okay so bestie, this is a page from the Library Functions Manual, and it's literally about setting parameters. let's get into it 🫢


✨ NAME ✨

PX_set_parameter β€” sets various parameters. that's it, that's the whole job, and she does it flawlessly πŸ’…


🌸 SYNOPSIS 🌸

#include <paradox.h>

int PX_set_parameter(pxdoc_t *pxdoc, const char *name, const char *value)

πŸ¦‹ DESCRIPTION πŸ¦‹

so what she does is: she sets the parameter name to the value value. simple. iconic. no notes.

fr fr important: you must use this function for all values of type string. like, every single one. no skipping.

and if you've got float-values instead? those get set with PX_set_value(3), not here. different function, different vibe 😌

now, name can be any one of these cuties:

  • tablename β€” the name of the table as it will be stored in the database header.
  • password β€” sets the password for writing an encrypted database. ⚠️ it must be set before writing the first record, no cap. and lowkey the best part: there is no need to set the password for reading a database. you're welcome πŸ’…
  • warning β€” turns warnings on/off. and just so you know, warnings are turned on by default. she's chatty like that πŸ™ˆ
  • targetencoding β€” the encoding for the output. data that's being read with one of the PX_get_data_xxx(3) functions will return string data in the targetencoding. so whatever you set here is what you get back, periodt ✨
  • inputencoding β€” the encoding of the input data which is to be stored into the database.

πŸ’œ RETURN VALUE πŸ’œ

  • 0 β€” success, we ate πŸŽ€
  • -1 β€” failure, it's giving tragedy 😭

πŸ‘‘ SEE ALSO πŸ‘‘


🌈 AUTHOR 🌈

this manual page was written by Uwe Steinmann uwe@steinmann.cx. thank you bestie for the lore 🫢


and that's the whole page, babe! it came from the Library Functions Manual β€” page PX_SET_PARAMETER(3) β€” and there's no date or version stamped on it, so consider this your little mystery girlie. go set some parameters, you're gonna slay πŸ’–βœ¨