|
My Project
|

Go to the source code of this file.
Data Structures | |
| struct | INT_list |
Functions | |
| int | intExpand (char *text, INT_list *list) |
| INT_list | intMerge (INT_list *list1, INT_list *list2) |
| int | _intexadd (INT_list *list, int a) |
| int _intexadd | ( | INT_list * | list, |
| int | a | ||
| ) |
int _intexadd(int *list, int a) ; local function
| list | |
| a |
References INT_list::i, and INT_list::nr.
Referenced by intExpand().
| int intExpand | ( | char * | text, |
| INT_list * | list | ||
| ) |
Existing list is freed and all data is cleared. Expanded integers are listed in list.i[] in increasing order.
| text | Integer expressions to be expanded, e.g. 0-8,12,34-28 |
| list | Pointer for int list data |
References _intexadd(), INT_list::i, INT_list::nr, and swap().

Merges two lists and returns the result. (the originals are not touched) Duplicate entries are removed.
| list1 | The first list |
| list2 | The second list |
References INT_list::i, and INT_list::nr.