pps_decoder_get_double()

Extract a double value from the current or named node

Synopsis:

#include <sys/pps.h>
            
pps_decoder_error_t pps_decoder_get_double(
                                    pps_decoder_t *decoder, 
                                    const char *name, 
                                    double *value);

Arguments:

decoder
A pointer to the PPS decoder structure.
name
The name of the property to extract the value from. Specify NULL to extract the data from the current node.
value
A pointer to a double to take the result.

Library:

libpps

Description:

The function pps_decoder_get_double() extracts a double value from the node having the specified name or, if the name argument is NULL, the current node. Following successful extraction, the decoder advances to the next node.

Returns:

PPS_DECODER_OK
Success.
PPS_DECODER_DELETED
The attribute was deleted.
PPS_DECODER_BAD_TYPE
There was a type mismatch.
PPS_DECODER_NOT_FOUND
The specified node doesn't exist.
PPS_DECODER_CONVERSION_FAILED
The value of the attribute is outside the range or would lose precision when converted to the specified type.

Classification:

QNX Neutrino

Safety:  
Interrupt handler No
Signal handler No
Thread Yes