Main Page | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

intex.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#include "include/intex.h"

Functions

int intExpand (char *text, INT_list *list)
int _intexadd (INT_list *list, int a)
INT_list intMerge (INT_list *list1, INT_list *list2)

Function Documentation

int _intexadd INT_list list,
int  a
 

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.

Returns:
Returns 0 if ok and at least one integer is listed.
Parameters:
text  Integer expressions to be expanded, e.g. 0-8,12,34-28
list  Pointer for int list data

INT_list intMerge INT_list list1,
INT_list list2
 

Merges two lists and returns the result. (the originals are not touched) Duplicate entries are removed.

Returns:
Returns pointer to the new combined list.
Parameters:
list1  The first list
list2  The second list


Generated on Fri Jan 21 16:17:41 2005 for libPET by  doxygen 1.4.1