src/line_protocol_parser.c
/* Create a new key-value pair container */
Create a new key-value pair container
Create a new key - value pair container
static struct LP_Item*
new_item(void)
{
    struct LP_Item *output = NULL;
    output = LP_MALLOC(sizeof(*output));
    if (output == NULL) {
        return NULL;
    }
    output->key = NULL;
    output->type = LP_STRING;
    output->value.s = NULL;
    output->next_item = NULL;
    return output;
}
static struct LP_Item * new_item ( void ) { struct LP_Item * output = NULL ; output = LP_MALLOC ( sizeof ( * output ) ) ; if ( output == NULL ) { return NULL ; } output -> key = NULL ; output -> type = LP_STRING ; output -> value . s = NULL ; output -> next_item = NULL ; return output ; }
Create a new key-value pair container
Create a new key - value pair container