Search:

Type: Posts; User: anduril462

Search: Search took 0.06 seconds.

  1. Replies
    12
    Views
    7,555

    You're welcome

    You're welcome
  2. Replies
    12
    Views
    7,555

    EDIT: The stupid syntax highlighter for the code...

    EDIT: The stupid syntax highlighter for the code tags is removing leading white space. If you clidk the "To plain text" button, everything will line up properly

    Your stack_push funciton uses...
  3. Replies
    12
    Views
    7,555

    Your remove function removes the node after the...

    Your remove function removes the node after the node pointed to by element. So what do you pass if you want to remove the first node of the list? There's no node before it (it's the first), so you...
  4. Replies
    12
    Views
    7,555

    I forgot, there were two problems: ==3304==...

    I forgot, there were two problems:


    ==3304== Invalid read of size 4
    ==3304== at 0x400721: print_stack (stackapp.c:45)
    ==3304== by 0x400870: main (stackapp.c:109)
    ==3304== Address...
  5. Replies
    12
    Views
    7,555

    The first 3 errors from valgrind gave you this...

    The first 3 errors from valgrind gave you this stack trace:


    ==3304== at 0x4C2A6EC: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
    ==3304== by 0x400CB8: list_rem_next...
Results 1 to 5 of 5