From 1251aa55b97b3b4ca7c2c670bdbd683a76eb6daa Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Fri, 11 Sep 2020 20:22:24 -0400 Subject: Refactor headers and relocate tests --- multihome.h | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'multihome.h') diff --git a/multihome.h b/multihome.h index 55ab6ce..80ce082 100644 --- a/multihome.h +++ b/multihome.h @@ -1,7 +1,3 @@ -// -// Created by jhunk on 8/26/20. -// - #ifndef MULTIHOME_MULTIHOME_H #define MULTIHOME_MULTIHOME_H @@ -42,4 +38,17 @@ setvbuf(stdout, NULL, _IONBF, 0); \ setvbuf(stderr, NULL, _IONBF, 0); +void free_array(void **arr, size_t nelem); +ssize_t count_substrings(const char *s, char *sub); +char **split(const char *sptr, char *delim, size_t *num_alloc); +char *find_program(const char *_name); +int shell(char *args[]); +int mkdirs(char *path); +int copy(char *source, char *dest, int mode); +int touch(char *filename); +char *get_timestamp(char **result); +void write_init_script(); +void user_transfer(int copy_mode); +char *strip_domainname(char *hostname); + #endif //MULTIHOME_MULTIHOME_H -- cgit