aboutsummaryrefslogtreecommitdiffstats
path: root/FICS
diff options
context:
space:
mode:
Diffstat (limited to 'FICS')
-rw-r--r--FICS/multicol.c23
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