Skip to content
Snippets Groups Projects
Verified Commit e77b3f62 authored by STEVAN Antoine's avatar STEVAN Antoine :crab:
Browse files

doc

parent 5f18489f
Branches
No related tags found
No related merge requests found
......@@ -61,6 +61,9 @@ da_str_t ls(const char *path) {
return files;
}
// concatenate two strings
//
// `concat` will allocate memory, it is the caller's responsibility to free it.
char *concat(const char *s1, const char *s2) {
char *result = malloc(strlen(s1) + strlen(s2) + 1);
strcpy(result, s1);
......@@ -68,6 +71,7 @@ char *concat(const char *s1, const char *s2) {
return result;
}
// find all Git repositories under at a given path
da_str_t find_git(const char *path) {
log_infoln("current: %s", path);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment