#include <stdio.h>#include <stdlib.h>#include <ctype.h>#include <string.h>#include "include/intex.h"Go to the source code of this file.
Functions | |
| int | intExpand (char *text, INT_list *list) |
| int | _intexadd (INT_list *list, int a) |
| INT_list | intMerge (INT_list *list1, INT_list *list2) |
int _intexadd(int *list, int a) ; local function
| list | |
| a |
Definition at line 93 of file intex.c.
References INT_list::i, and INT_list::nr.
Referenced by intExpand().
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 |
Definition at line 44 of file intex.c.
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 |
Definition at line 125 of file intex.c.
References INT_list::i, and INT_list::nr.
1.8.0