pps_decoder_parse_json_str()

Updated: October 26, 2022

Parse a string of JSON-formatted data

Synopsis:

#include <sys/pps.h>
            
pps_decoder_error_t pps_decoder_parse_json_str(
                                    pps_decoder_t *decoder, 
                                    char *str);

Arguments:

decoder
A pointer to the PPS decoder structure.
str
A pointer to a string containing PPS data.

Library:

libpps

Description:

The function pps_decoder_parse_json_str() parses a string of JSON-formatted data. Except for the format of the data passed in the str argument, the behavior of this function is the same as for pps_decoder_parse_pps_str().

Returns:

PPS_DECODER_OK
Success.
>=1
An error occurred. See pps_decoder_error_t.

Classification:

QNX Neutrino

Safety:  
Interrupt handler No
Signal handler No
Thread Yes