/usr/include/spooles/Utilities/IP.h is in libspooles-dev 2.2-11.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 | /* IP.h */
/*--------------------------------------------------------------------*/
/*
---------------------------------------------------------------
the IP structure contains an Int field and an IP* field.
it is the simplest singly linked list element, useful at times.
---------------------------------------------------------------
*/
typedef struct _IP IP ;
struct _IP {
int val ;
IP *next ;
} ;
/*--------------------------------------------------------------------*/
#define IP_NULL 0
#define IP_FORWARD 1
#define IP_BACKWARD 2
/*--------------------------------------------------------------------*/
/*
---------------------------------
purpose -- to print out a IP list
created -- 95sep22, cca
---------------------------------
*/
void
IP_fprintf (
FILE *fp,
IP *ip
) ;
/*--------------------------------------------------------------------*/
/*
------------------------------------------------------------------
purpose -- to write out an integer list with eighty column lines
input --
fp -- file pointer, must be formatted and write access
ip -- head of list
column -- present column
return value -- present column
created -- 95sep22, cca
------------------------------------------------------------------
*/
int
IP_fp80 (
FILE *fp,
IP *ip,
int column
) ;
/*--------------------------------------------------------------------*/
/*
---------------------------------------------------------
initializer.
create and return an array of n IP structures.
the structures are linked in one of three ways.
flag = 0 (IP_NULL) --> ip->next = NULL
flag = 1 (IP_FORWARD) --> ip->next = successor in list
flag = 2 (IP_BACKWARD) --> ip->next = predecessor in list
created -- 95sep22, cca
---------------------------------------------------------
*/
IP *
IP_init (
int n,
int flag
) ;
/*--------------------------------------------------------------------*/
/*
-----------------------------------------------
free the storage for an array of IP structures,
must have been allocated by IP_init
created -- 95sep22, cca
-----------------------------------------------
*/
void
IP_free (
IP *ip
) ;
/*--------------------------------------------------------------------*/
/*
----------------------------------
merge two lists in ascending order
created -- 95sep22, cca
----------------------------------
*/
IP *
IP_mergeUp (
IP *ip1,
IP *ip2
) ;
/*--------------------------------------------------------------------*/
/*
---------------------------------------------
purpose -- to sort a singly linked list in
ascending order using a radix sort
created -- 95sep22, cca
---------------------------------------------
*/
IP *
IP_radixSortUp (
IP *ip
) ;
/*--------------------------------------------------------------------*/
/*
----------------------------------------------
purpose -- to sort a singly linked list in
descending order using a radix sort
created -- 95sep22, cca
----------------------------------------------
*/
IP *
IP_radixSortDown (
IP *ip
) ;
/*--------------------------------------------------------------------*/
/*
-----------------------------------------------
sort a list in ascending order using merge sort
created -- 95sep22, cca
-----------------------------------------------
*/
IP *
IP_mergeSortUp (
IP *ip0
) ;
/*--------------------------------------------------------------------*/
|