Function report |
Source Code:lib\list_sort.c |
Create Date:2022-07-28 06:20:49 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Returns a list organized in an intermediate format suited* to chaining of merge() calls: null-terminated, no reserved or* sentinel head node, "prev" links not maintained.
Proto:__attribute__((nonnull(2, 3, 4))) static struct list_head *merge(void *priv, cmp_func cmp, struct list_head *a, struct list_head *b)
Type:struct list_head
Parameter:
| Type | Parameter | Name |
|---|---|---|
| void * | priv | |
| cmp_func | cmp | |
| struct list_head * | a | |
| struct list_head * | b |
| 22 | tail = head |
| 24 | cycle |
| 34 | Else |
| 44 | Return head |
| Name | Describe |
|---|---|
| list_sort | list_sort - sort a list*@priv: private data, opaque to list_sort(), passed to @cmp*@head: the list to sort*@cmp: the elements comparison function* The comparison funtion @cmp must return > 0 if @a should sort after*@b ("@a > @b" if you want an ascending |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |