19 int i
= 0; struct list
* last
;
20 int num
= atoi("8000000");
23 /* Initialize initial list of revisions */
24 struct list
** revisionList
= malloc(size
* sizeof(struct list
*));
26 struct hash standardColumn
;
27 strcpy(standardColumn
.value
, "Haha pieter");
28 for (i
= 0; i
< num
; i
++) {
31 revisionList
= realloc(revisionList
, size
* sizeof(struct list
*));
34 struct list
* a
= malloc(sizeof(struct list
));
37 a
->numColumns
= i
% 5;
38 a
->columns
= malloc(a
->numColumns
* sizeof(struct hash
));
40 for (j
= 0; j
< a
->numColumns
; j
++) {
41 //ccolumns[currentColumn++] = st
42 strncpy(a
->columns
[j
].value
, "Haha pieter is cool", 20);
46 printf("Num value at 3000 is: %i vs %i\n", revisionList
[3000]->numColumns
, (int) (5 * random()));