Lines Matching refs:string
254 softnic_parse_tokenize_string(char *string, char *tokens[], uint32_t *n_tokens) in softnic_parse_tokenize_string() argument
258 if (string == NULL || in softnic_parse_tokenize_string()
264 tokens[i] = strtok_r(string, PARSE_DELIMITER, &string); in softnic_parse_tokenize_string()
270 strtok_r(string, PARSE_DELIMITER, &string) != NULL) in softnic_parse_tokenize_string()
314 softnic_parse_mpls_labels(char *string, uint32_t *labels, uint32_t *n_labels) in softnic_parse_mpls_labels() argument
319 if (strcmp(string, "<void>") == 0) { in softnic_parse_mpls_labels()
325 for ( ; (*string != '\0'); ) { in softnic_parse_mpls_labels()
333 if (string[0] != ':') in softnic_parse_mpls_labels()
336 string++; in softnic_parse_mpls_labels()
339 value = strtol(string, &next, 10); in softnic_parse_mpls_labels()
340 if (next == string) in softnic_parse_mpls_labels()
342 string = next; in softnic_parse_mpls_labels()