Search:

Type: Posts; User: jonathan.plumb

Search: Search took 0.00 seconds.

  1. A link to my entire .c file is func.c...

    A link to my entire .c file is func.c
  2. so I noticed I have this code: int i; for...

    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...
  3. Okay so I added a +1 to the end of all my...

    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...
  4. Ya I put printf() everywhere, I only deleted them...

    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...
  5. Help -- allocating memory in a multidimensional array

    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...
Results 1 to 5 of 5