diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2023-12-20 22:38:59 +0100 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2023-12-20 22:38:59 +0100 |
commit | 54cc2fc1bab369b6205281ac77b325dbf4dfbe8c (patch) | |
tree | 062df34b6c2f78a22ca72448e766076df84f8c34 /FICS/multicol.c | |
parent | 8d2185ffe5faf19a82ba62322d02c635c82f8032 (diff) |
Reformatted multicol_start()
Diffstat (limited to 'FICS/multicol.c')
-rw-r--r-- | FICS/multicol.c | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/FICS/multicol.c b/FICS/multicol.c index 416c1a5..5f9f63f 100644 --- a/FICS/multicol.c +++ b/FICS/multicol.c @@ -29,18 +29,19 @@ #include "rmalloc.h" #include "utils.h" -PUBLIC multicol *multicol_start(int maxArray) +PUBLIC multicol * +multicol_start(int maxArray) { - int i; - multicol *m; - - m = (multicol *) rmalloc(sizeof(multicol)); - m->arraySize = maxArray; - m->num = 0; - m->strArray = (char **) rmalloc(sizeof(char *) * m->arraySize); - for (i = 0; i < m->arraySize; i++) - m->strArray[i] = NULL; - return m; + multicol *m; + + m = rmalloc(sizeof(multicol)); + m->arraySize = maxArray; + m->num = 0; + m->strArray = rmalloc(sizeof(char *) * m->arraySize); + + for (int i = 0; i < m->arraySize; i++) + m->strArray[i] = NULL; + return m; } PUBLIC int |