| igraph Reference Manual |
|---|
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.
<< 8.6. igraph_strvector_set — Set an element |
8.8. igraph_strvector_remove — Removes a single element from a string vector. >> |