Search:

Type: Posts; User: anduril462

Search: Search took 0.03 seconds.

  1. Replies
    11
    Views
    5,172

    Nope, you need one free for every malloc, and...

    Nope, you need one free for every malloc, and they happen in reverse order. You malloc the outer array *ls, then malloc (*ls)[0] to (*ls)[MAX], so you free (*ls)[0] to (*ls)[MAX], then free(*ls). ...
  2. Replies
    11
    Views
    5,172

    First, you should learn to use a debugger. Then...

    First, you should learn to use a debugger. Then you can simply step through the code line by line, and follow exactly what is happening, examine variables, etc.

    Second, you need to work on your...
Results 1 to 2 of 2