Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

px_set_parameter(3) [debian man page]

PX_SET_PARAMETER(3)					     Library Functions Manual					       PX_SET_PARAMETER(3)

NAME
PX_set_parameter -- Sets various parameters SYNOPSIS
#include <paradox.h> int PX_set_parameter(pxdoc_t *pxdoc, const char *name, const char *value) DESCRIPTION
Sets the parameter name to the value value. This function must be used for all values of type string. float-values can be set with PX_set_value(3). name may be one of the following. tablename The name of the table as it will be stored in the datbase header. password Set the password for writing an encrypted database. It must be set before writing the first record. There is no need to set the password for reading a database. warning Turn on/off warnings. Warnings are turned on by default. targetencoding The encoding for the output. Data which is being read with one of the PX_get_data_xxx(3) functions will return string data in the targetencoding. inputencoding The econding of the input data which is to be stored into the database. RETURN VALUE
Returns 0 on success and -1 on failure. SEE ALSO
PX_get_parameter(3), PX_set_value(3) AUTHOR
This manual page was written by Uwe Steinmann uwe@steinmann.cx. PX_SET_PARAMETER(3)

Check Out this Related Man Page

PX_GET_DATA_ALPHA(3)					     Library Functions Manual					      PX_GET_DATA_ALPHA(3)

NAME
PX_get_data_alpha -- Get alpha data field SYNOPSIS
#include <paradox.h> int PX_get_data_alpha(pxdoc_t *pxdoc, char *data, int len, char **value) DESCRIPTION
Converts a data field as it is stored in the database file into a string for the given encoding. You must set the target encoding before in order to recode the string. If you do not set the encoding the data will be returned as is. You should use this function instead of access- ing the data directly. data points to the start of the data field in the record. It must be calculated by summing up all field length before the field to operate on and add it to the base pointer of the record. The function allocates memory for the string returned in *value. This memory has to be freed by the application. Note: This function is deprecated and obsolete if PX_retrieve_record(3) is used. RETURN VALUE
Returns 0 if the field data starts with a null byte, -1 in case of an error and 1 otherwise. SEE ALSO
PX_get_data_byte(3), PX_get_data_long(3), PX_get_data_short(3), PX_get_data_double(3), PX_get_data_bcd(3), PX_get_data_blob(3) AUTHOR
This manual page was written by Uwe Steinmann uwe@steinmann.cx. PX_GET_DATA_ALPHA(3)
Man Page