path/path.c: Implemented SplitN.

Renamed Segments() to SplitN(), added parameters, and created a new
Segments() using SplitN() while maintaining the original functionality.
This commit is contained in:
Jose Marcial Vieira Bisneto 2016-11-26 10:39:53 -03:00
parent 0f5964ad3c
commit ac4cc8feaa
2 changed files with 39 additions and 14 deletions

View file

@ -21,6 +21,7 @@
} PathErrs;
char* PathFromCid (struct Cid *c);
char** SplitN (char *p, char *delim, int n);
char** Segments (char *p);
int SegmentsLength (char **s);
void FreeSegments (char ***s);