Function report |
Source Code:lib\list_sort.c |
Create Date:2022-07-28 06:20:50 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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
Proto:__attribute__((nonnull(2, 3))) void list_sort(void *priv, struct list_head *head, int (*cmp)(void *priv, struct list_head *a, struct list_head *b))
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
void * | priv | |
struct list_head * | head | |
int (* | cmp |
193 | count = 0 |
199 | next = NULL |
219 | Do |
227 | If Value is more likely to compile time(bits) Then |
240 | next = NULL |
241 | count++ |
247 | cycle |
250 | If Not next Then Break |
Name | Describe |
---|---|
list_sort_test |
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 |