contributed by < howardjchen >
Impelment following functions in queue.[ch]:
q_new: Create a new, empty queue.q_free: Free all storage used by a queue.q_insert_head: Attempt to insert a new element at the head of the queue (LIFO discipline).q_insert_tail: Attempt to insert a new element at the tail of the queue (FIFO discipline).q_remove_head: Attempt to remove the element at the head of the queue.q_size: Compute the number of elements in the queue.q_reverse: Reorder the list so that the queue elements are reversed in order. This function should notallocate or free any list elements.q_sort: Sort the elements of the given queue in ascending order.make check 可以 pass 的 version| 名稱 | 作用 |
|---|---|
| build-essential | GNU Toolchain and necessary headers/libraries |
| git-core | distributed revision control system |
| valgrind | dynamic binary instrumentation (DBI) framework |
| cppcheck | static C/C++ code analysis |
| clang-format | format C/C++/Obj-C code |
| aspell | spell-checker |
| colordiff | colorize 'diff' output |
NULLlab Linux-internals