PX_GET_DATA_BCD(3) Library Functions Manual PX_GET_DATA_BCD(3)NAME
PX_get_data_bcd -- Get bcd data field
SYNOPSIS
#include <paradox.h>
int PX_get_data_bcd(pxdoc_t *pxdoc, char *data, int len, char **value)
DESCRIPTION
Converts a data field as it stored in the database file into a bcd string. The string will not be longer than 20 chars including the final
0. It contains only the characters `+', `-', `0-9', and `.'. You should use this function instead of accessing 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. len is the number of digits after the decimal point.
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 value is NULL, -1 in case of an error and 1 otherwise.
SEE ALSO PX_get_data_alpha(3), PX_get_data_byte(3), PX_get_data_long(3), PX_get_data_short(3), PX_get_data_double(3)AUTHOR
This manual page was written by Uwe Steinmann uwe@steinmann.cx.
PX_GET_DATA_BCD(3)
Check Out this Related Man Page
PX_GeT_DATA_DOUBLE(3) Library Functions Manual PX_GeT_DATA_DOUBLE(3)NAME
PX_get_data_double -- Get double data field
SYNOPSIS
#include <paradox.h>
int PX_get_data_double(pxdoc_t *pxdoc, char *data, int len, double *value)
DESCRIPTION
Converts a data field as it stored in the database file into a double for the host architecture. You should use this function instead of
accessing 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.
Note:
This function is deprecated and obsolete if PX_retrieve_record(3) is used.
RETURN VALUE
Returns 0 if the value is NULL, -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_alpha(3)AUTHOR
This manual page was written by Uwe Steinmann uwe@steinmann.cx.
PX_GeT_DATA_DOUBLE(3)
Hi All,
Here is the problem:
The input file is like as per below. Each record has 30 chars in total. Have to add the first 17 and the next 13 and append the output. Total records can vary.
000000004728800000000000003908
000000003005100000000000002484
000000002602200000000000002151... (5 Replies)
Hi All,
I have a file which looks like this:
abc 1
abc 2
abc 3
abc 4
abc 5
bcd 1
bcd 3
bcd 3
bcd 5
cde 7
This file is just a miniature version of what I really have. Original file is some 1 million lines long.
I have tried to come up with the code for what I wish to accomplish... (1 Reply)
Hi All,
I have a very large single record file.
abc;date||bcd;efg|......... pqr;stu||record_count;date
when i do wc -l on this file it gives me "0" records, coz of missing line feed.
my problem is there is an extra pipe that is coming at the end of this record
like... (6 Replies)
Hi Experts,
I created a powershell script to fetch user details from active directory and export it to a csv/excel.
"abc","bcd","devloper;admin"
"bcd","dca","tester;QA;admin"
So here user abc is member of devloper and admin group and user bcd is a member of tester,QA and admin... (6 Replies)