A link to my entire .c file is func.c
Type: Posts; User: jonathan.plumb
A link to my entire .c file is func.c
so I noticed I have this code:
int i;
for (i = 0; i < numOf[t]-n; i++);
{
printf("i is %i, n is %i, numOf[%i] is %i\n", i, n, t, numOf[t]);
and on the FIRST iteration, 'i' is 1. Why is...
Okay so I added a +1 to the end of all my malloc() calls (inside the parenthesis of course). Still get a Segmentation fault at the same place.
Also, should I be "free()" ing anything up? I'm not...
Ya I put printf() everywhere, I only deleted them all when I posted to the forum, that's how I know exactly where it was breaking.
And the index should never be -1, because if numOf[t] is 0 it...
I need some help with allocating memory. This is for a school assignment and the notes I've taken in class aren't quite helping me solve the problem.
Basically I have a list of words and I make...