You're welcome
Type: Posts; User: anduril462
You're welcome
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...
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...
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...
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...