Skip list modifications and test.
Added functions skip_delete_node for properly deleting skip_node skip_destroy_list for properly destroying whole skip list skip_print_list for printing the skip list. Changed return values of function skip_insert(). Renamed skip_delete() to skip_remove() and changed return value to int (successful / not found) Bugfix in skip_remove(). Added test of skip list.
Showing
- src/main.c 5 additions, 3 deletionssrc/main.c
- src/other/skip-list.c 98 additions, 13 deletionssrc/other/skip-list.c
- src/other/skip-list.h 55 additions, 15 deletionssrc/other/skip-list.h
- src/tests/tests.c 124 additions, 2 deletionssrc/tests/tests.c
- src/tests/tests.h 2 additions, 0 deletionssrc/tests/tests.h
Loading
Please register or sign in to comment