diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2023-12-25 16:57:36 +0100 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2023-12-25 16:57:36 +0100 |
commit | 9690e7a910a0d11ddc201b978596dbd2df637835 (patch) | |
tree | 8f7e7fc55383ae201978bd7012c1c5228bc58185 /FICS | |
parent | b8f90a3aecef97a0a37a007bc56ec85c94591773 (diff) |
Moved code
Diffstat (limited to 'FICS')
-rw-r--r-- | FICS/utils.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/FICS/utils.c b/FICS/utils.c index 89a35c3..ceade5e 100644 --- a/FICS/utils.c +++ b/FICS/utils.c @@ -34,6 +34,21 @@ #include "rmalloc.h" #include "utils.h" +struct t_tree { + char name; + struct t_tree *left, *right; +}; + +struct t_dirs { + char name; + struct t_dirs *left, *right; + struct t_tree *files; + time_t mtime; +}; + +PRIVATE char** t_buffer = NULL; +PRIVATE int t_buffersize = 0; + PUBLIC int count_lines(FILE *fp) { int c, nl = 0; @@ -873,21 +888,6 @@ PUBLIC char *ratstrii(int rat, int reg) return tmp[on - 1]; } -struct t_tree { - struct t_tree *left, *right; - char name; /* Not just 1 char - space for whole name */ -}; /* is allocated. Maybe a little cheesy? */ - -struct t_dirs { - struct t_dirs *left, *right; - time_t mtime; /* dir's modification time */ - struct t_tree *files; - char name; /* ditto */ -}; - -PRIVATE char **t_buffer = NULL; /* pointer to next space in return buffer */ -PRIVATE int t_buffersize = 0; /* size of return buffer */ - /* * Fill 't_buffer' with anything matching "want*" in file tree */ |