src/lq-collections.c
/**
 *  \brief Scans the qryProps struct for the a prop and returns the value from the underlying char array.
 * 
 *  \param [in] propsName - Char pointer to the c-string containing message properties passed in topic 
 *  \param dict [in] - Dictionary
 * 
 *  \return Struct with pointer arrays to the properties (name/value)
*/
\brief Scans the qryProps struct for the a prop and returns the value from the underlying char array.

\param [in] propsName - Char pointer to the c-string containing message properties passed in topic
\param dict [in] - Dictionary

\return Struct with pointer arrays to the properties (name/value)
\ brief Scans the qryProps struct for the a prop and returns the value from the underlying char array . \ param [ in ] propsName - Char pointer to the c - string containing message properties passed in topic \ param dict [ in ] - Dictionary \ return Struct with pointer arrays to the properties ( name / value )
void lq_getQryStrDictionaryValue(const char *key, keyValueDict_t dict, char *value, uint8_t valSz)
{
    if (dict.keys[0] == NULL || dict.keys[0][0] == '\0')        
        return;
    for (size_t i = 0; i < dict.count; i++)
    {
        if (strcmp(dict.keys[i], key) == 0)
        {
            strncpy(value, dict.values[i], valSz-1);
            break;
        }
    }
}
void lq_getQryStrDictionaryValue ( const char * key , keyValueDict_t dict , char * value , uint8_t valSz ) { if ( dict . keys [ 0 ] == NULL || dict . keys [ 0 ] [ 0 ] == ' \0 ' ) return ; for ( size_t i = 0 ; i < dict . count ; i ++ ) { if ( strcmp ( dict . keys [ i ] , key ) == 0 ) { strncpy ( value , dict . values [ i ] , valSz - 1 ) ; break ; } } }
\brief Scans the qryProps struct for the a prop and returns the value from the underlying char array.
\ brief Scans the qryProps struct for the a prop and returns the value from the underlying char array .
// underlying char array is invalid