Barrelfish
Functions
parse_names.c File Reference

Parse function for format returned by get_names. More...

Functions

errval_t oct_parse_names (char *input, char ***names, size_t *len)
 Parses output from get_names call and stores it in an array. More...
 
void oct_free_names (char **names, size_t len)
 Helper function to free an array of strings. More...
 

Detailed Description

Parse function for format returned by get_names.

Function Documentation

void oct_free_names ( char **  names,
size_t  len 
)

Helper function to free an array of strings.

Frees all entries of the array and the array itself.

Parameters
namesNon-null array of strings.
lenSize of the names array
See also
oct_get_names
errval_t oct_parse_names ( char *  input,
char ***  names,
size_t *  len 
)

Parses output from get_names call and stores it in an array.

Note
Use oct_free_names() to free names array.
Parameters
[in]inputComma separated string of names
[out]namesArray of strings containing all names
[out]lenSize of array.
Return values
LIB_ERR_MALLOC_FAIL
SYS_ERR_OK