diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2023-12-25 16:16:00 +0100 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2023-12-25 16:16:00 +0100 |
commit | 65642c648fcca78114f95e65799254d31ef9540a (patch) | |
tree | 2c8a7e906335f4e4649c5504adebbe2ce8c61678 | |
parent | 5fb77c3337679d5661a3e14747481355fbc82bfd (diff) |
Reformatted display_directory()
-rw-r--r-- | FICS/utils.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/FICS/utils.c b/FICS/utils.c index e7709ab..17cb715 100644 --- a/FICS/utils.c +++ b/FICS/utils.c @@ -997,15 +997,15 @@ PUBLIC int search_directory(char *dir, char *filter, char **buffer, int buffersi return (buffersize - t_buffersize); } -PUBLIC int display_directory(int p, char **buffer, int count) -/* buffer contains 'count' string pointers */ -{ - int i; - multicol *m = multicol_start(count); - - for (i = 0; (i < count); i++) - multicol_store(m, *buffer++); - multicol_pprint(m, p, 78, 1); - multicol_end(m); - return (i); +PUBLIC int +display_directory(int p, char **buffer, int count) +{ // 'buffer' contains 'count' string pointers. + int i; + multicol *m = multicol_start(count); + + for (i = 0; (i < count); i++) + multicol_store(m, *buffer++); + multicol_pprint(m, p, 78, 1); + multicol_end(m); + return (i); } |