8.7. igraph_strvector_set2 — Sets an element

int igraph_strvector_set2(igraph_strvector_t *sv, long int idx, 
			  const char *value, int len);

This is almost the same as igraph_strvector_set, but the new value is not a zero terminated string, but its length is given.

Arguments: 

sv:

The string vector.

idx:

The position to set.

value:

The new value.

len:

The length of the new value.

Returns: 

Error code.

Time complexity: O(l), the length of the new string. Maybe more, depending on the memory management, if reallocation is needed.