Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

px_get_data_double(3) [debian 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)

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

11 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

fill a NIL into the blank field

Hello, I have a record which split with "," I would like to check..if the field is empty and it will field "NIL" into the field. input 45111,40404,peter,,0303403,0,030304,john,,9,0, output 45111,40404,peter,NIL,0303403,0,030304,john,NIL,9,0, (8 Replies)
Discussion started by: happyv
8 Replies

2. Shell Programming and Scripting

Need help with sed

Hi, I need to convert a fixed length record to a delimited one. Sed is giving me problem when trying with 2 digit field numbers, ir it is failing while extracting 10th field. Can someone plese help me ? Eg: The following is working echo "aaaaaaaaaa bbbbbbbbccccccc dddd... (0 Replies)
Discussion started by: ammu.mathai
0 Replies

3. Shell Programming and Scripting

Need help with sed

Hi, I need to convert a fixed length record to a delimited one. Sed is giving me problem when trying with 2 digit field numbers, ir it is failing while extracting 10th field. Can someone plese help me ? Eg: The following is working echo "aaaaaaaaaa bbbbbbbbccccccc dddd... (3 Replies)
Discussion started by: ammu.mathai
3 Replies

4. UNIX for Dummies Questions & Answers

Formatting a line of data into columns

Hi all, I'm a little stuck with a data file I've been collecting data in. The file contains one field of data running continuously down the file and I can't work out how to format the data into three columns. This is a mock up of the file: Each r# is a random number and varies in length, this... (3 Replies)
Discussion started by: nistleloy
3 Replies

5. Shell Programming and Scripting

Extract data into file with specific field specs

:confused: I have a tab delimited file that I need to extract data from and into a file with specific field specs. Each field has to be a certain amount of characters. So, the name field (from delimited file) might have only 15 characters but needs to be 25 (in new file) so I need to insert spaces... (5 Replies)
Discussion started by: criddel
5 Replies

6. Shell Programming and Scripting

Replace field when only "-" occurs on a random basis

I have a file in which "-"(by itself and nothing else) occurs in different fields in each record(sometimes in the 3 field, sometime in the 20th field, some time in the 100th field....etc). Also there are field of the format "abc-def". How do I replace fields that have just "-" with number zero. sed... (4 Replies)
Discussion started by: akshaykr2
4 Replies

7. Shell Programming and Scripting

Replace comma by space for specified field in record

Hi, i want to replace comma by space for specified field in record, i mean i want to replace the commas in the 4th field by space. and rest all is same throught the record. the record is 16458,99,001,"RIMOUSKI, QC",418,"N",7,EST,EDT,902 16458,99,002,"CHANDLER,... (5 Replies)
Discussion started by: raghavendra.cse
5 Replies

8. Shell Programming and Scripting

help with sed or awk

I need to add a field at the beginning of each record in the file. The file is comma seperated. Can somebody throw some light. My record looks something like this I need to add 100 at the beginning of each record. o/p should be (2 Replies)
Discussion started by: dsravan
2 Replies

9. Shell Programming and Scripting

Inserting a new field inbetween two exisitng field

I have a '|' delimited file. My file looks like below 23|nationalhoilday|feb12||||||||||||||california|northdistrict|| In the same way, each record has 164 fields. I have to insert one more field after the 85th field. Expected output... (3 Replies)
Discussion started by: machomaddy
3 Replies

10. Shell Programming and Scripting

AWK print initial record and double

I have an initial record 0.018 I would like a script that would for i=0;i<200;i++ print 0.018*1 0.018*2 0.018*3 0.018*4 ... 0.018*200 using newline. (7 Replies)
Discussion started by: chrisjorg
7 Replies

11. Shell Programming and Scripting

Removal of comma within double quotes

Hi All, I am getting .csv file whenever there is a comma present between a field that field get enclosed with double quotes For eg as below abc,123,xxyy,2178 fgh,123,"x,x"yy",2178 ghi,123,"x,xyy",2178 jkl,123,xx"yy,2178 whereas I want my data as per below abc,123,xxyy,2178... (1 Reply)
Discussion started by: H_bansal
1 Replies