How is it done? In class, my teacher just showd us the C++ way, and about C he said "send with an ampersand, catch with an aserisk, use with an asterisk"
After this brief explanation I still have no idea how to do it in C.
Ok, so I fixed it up a little. It comples now without errors but the program crashes right away. I think because of some memory segmentation fault or something like that. Can you please take a look at it? I think I'm making a mistake somewhere with pointer arithmetic.
void allocatearray( char *** matrix)
(**matrix) = (char**)malloc(sizeof(char**));
for (i=0; i < 10000; i++)
(*matrix[i]) = (char*)malloc(sizeof(char*));
for (j=0; j < 26; j++)
*matrix[i][j] = '0';
char ** dictionary;
int wordRow = 0;
FILE * inFile;
inFile = fopen ("textfile.txt","r");
while ( fgets(dictionary[wordRow],26,inFile) != NULL )