Type | Description |
---|---|
ccarr(T) |
Array of Bits |
ccxll(T) |
XOR Linked List |
ccsll(T) |
Singly Linked List |
ccdll(T) |
Doubly Linked List |
ccgbt(T) |
TBA |
ccrbt(T) |
TBA |
ccmap(T) |
TBA |
#include "src/list/extd-ccdll.h"
int main(void)
{
// Create
ccdll(int) list;
// Initialize
ccdll_init(list);
// Modify
for (int cnt = 0; cnt < 8; cnt++)
ccdll_push_back(list, rand());
// Operate
ccdll_sort_prefetch(list);
// Traverse
CCDLL_INCR_AUTO(pnum, list)
printf("num = %d\n", *pnum);
// Destroy
ccdll_free(list);
}
See test cases for more fascinating examples!
Kevin Dong - 2015 2016 2017 2018
Andylinpersonal - 2017
This project is distributed under the MIT License.
MOST Grant No. 106-2813-C-009-027-E (Date: 2017-07-01 ~ 2018-02-28)
This research is funded by the Ministry of Science and Technology, Taiwan.