From 65642c648fcca78114f95e65799254d31ef9540a Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Mon, 25 Dec 2023 16:16:00 +0100 Subject: Reformatted display_directory() --- FICS/utils.c | 22 +++++++++++----------- 1 file 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); } -- cgit v1.2.3