|
| 1 | +#ifndef DODAC_H |
| 2 | +#define DODAC_H |
| 3 | + |
| 4 | +#include <stddef.h> |
| 5 | +#include <stdbool.h> |
| 6 | + |
| 7 | +#ifndef DODAC_SEED |
| 8 | +# define DODAC_SEED 0x12345678 |
| 9 | +#endif |
| 10 | + |
| 11 | +#define CHAR_FORMAT "%c" |
| 12 | +#define UCHAR_FORMAT "%c" |
| 13 | +#define INT_FORMAT "%d " |
| 14 | +#define UINT_FORMAT "%u " |
| 15 | +#define FLOAT_FORMAT "%f " |
| 16 | +#define FLOAT_FORMAT "%f " |
| 17 | +#define DOUBLE_FORMAT "%lf " |
| 18 | +#define SIZE_FORMAT "%zu " |
| 19 | +#define STRING_FORMAT "%s " |
| 20 | + |
| 21 | +void chardst(void * const element); |
| 22 | + |
| 23 | +void * charcpy(void * const destination, void const * const source); |
| 24 | + |
| 25 | +void * charsum(void * const sum, void const * const addent); |
| 26 | + |
| 27 | +size_t charhshsame(void const * const element); |
| 28 | + |
| 29 | +int charcmp(void const * const a, void const * const b); |
| 30 | + |
| 31 | +int charrcmp(void const * const a, void const * const b); |
| 32 | + |
| 33 | +bool charprint(void * const element, void * const format); |
| 34 | + |
| 35 | +bool chartolower(void * const element, void * const null); |
| 36 | + |
| 37 | +bool chartoupper(void * const element, void * const null); |
| 38 | + |
| 39 | +void charqsort(void * const array, size_t const lenght, void * const null); |
| 40 | + |
| 41 | +void charrqsort(void * const array, size_t const lenght, void * const null); |
| 42 | + |
| 43 | +bool chareven(void const * const element, void * const null); |
| 44 | + |
| 45 | +bool charodd(void const * const element, void * const null); |
| 46 | + |
| 47 | +bool charalnum(void const * const element, void * const null); |
| 48 | + |
| 49 | +bool charalpha(void const * const element, void * const null); |
| 50 | + |
| 51 | +bool charcntrl(void const * const element, void * const null); |
| 52 | + |
| 53 | +bool chardigit(void const * const element, void * const null); |
| 54 | + |
| 55 | +bool charlower(void const * const element, void * const null); |
| 56 | + |
| 57 | +bool charupper(void const * const element, void * const null); |
| 58 | + |
| 59 | +bool charpunct(void const * const element, void * const null); |
| 60 | + |
| 61 | +bool charspace(void const * const element, void * const null); |
| 62 | + |
| 63 | +bool charxdigit(void const * const element, void * const null); |
| 64 | + |
| 65 | +bool charprime(void const * const element, void * const null); |
| 66 | + |
| 67 | +void uchardst(void * const element); |
| 68 | + |
| 69 | +void * ucharcpy(void * const destination, void const * const source); |
| 70 | + |
| 71 | +void * ucharsum(void * const sum, void const * const addent); |
| 72 | + |
| 73 | +size_t ucharhshsame(void const * const element); |
| 74 | + |
| 75 | +int ucharcmp(void const * const a, void const * const b); |
| 76 | + |
| 77 | +int ucharrcmp(void const * const a, void const * const b); |
| 78 | + |
| 79 | +bool ucharprint(void * const element, void * const format); |
| 80 | + |
| 81 | +bool uchartolower(void * const element, void * const null); |
| 82 | + |
| 83 | +bool uchartoupper(void * const element, void * const null); |
| 84 | + |
| 85 | +void ucharqsort(void * const array, size_t const lenght, void * const null); |
| 86 | + |
| 87 | +void ucharrqsort(void * const array, size_t const lenght, void * const null); |
| 88 | + |
| 89 | +bool uchareven(void const * const element, void * const null); |
| 90 | + |
| 91 | +bool ucharodd(void const * const element, void * const null); |
| 92 | + |
| 93 | +bool ucharalnum(void const * const element, void * const null); |
| 94 | + |
| 95 | +bool ucharalpha(void const * const element, void * const null); |
| 96 | + |
| 97 | +bool ucharcntrl(void const * const element, void * const null); |
| 98 | + |
| 99 | +bool uchardigit(void const * const element, void * const null); |
| 100 | + |
| 101 | +bool ucharlower(void const * const element, void * const null); |
| 102 | + |
| 103 | +bool ucharupper(void const * const element, void * const null); |
| 104 | + |
| 105 | +bool ucharpunct(void const * const element, void * const null); |
| 106 | + |
| 107 | +bool ucharspace(void const * const element, void * const null); |
| 108 | + |
| 109 | +bool ucharxdigit(void const * const element, void * const null); |
| 110 | + |
| 111 | +bool ucharprime(void const * const element, void * const null); |
| 112 | + |
| 113 | +void intdst(void * const element); |
| 114 | + |
| 115 | +void * intcpy(void * const destination, void const * const source); |
| 116 | + |
| 117 | +void * intsum(void * const sum, void const * const addent); |
| 118 | + |
| 119 | +size_t inthshsame(void const * const element); |
| 120 | + |
| 121 | +size_t inthshmurmur(void const * const element); |
| 122 | + |
| 123 | +int intcmp(void const * const a, void const * const b); |
| 124 | + |
| 125 | +int intrcmp(void const * const a, void const * const b); |
| 126 | + |
| 127 | +bool intprint(void * const element, void * const format); |
| 128 | + |
| 129 | +bool intincrement(void * const element, void * const value); |
| 130 | + |
| 131 | +bool intdecrement(void * const element, void * const value); |
| 132 | + |
| 133 | +void intqsort(void * const array, size_t const lenght, void * const null); |
| 134 | + |
| 135 | +void intrqsort(void * const array, size_t const lenght, void * const null); |
| 136 | + |
| 137 | +bool inteven(void const * const element, void * const null); |
| 138 | + |
| 139 | +bool intodd(void const * const element, void * const null); |
| 140 | + |
| 141 | +bool intprime(void const * const element, void * const null); |
| 142 | + |
| 143 | +void uintdst(void * const element); |
| 144 | + |
| 145 | +void * uintcpy(void * const destination, void const * const source); |
| 146 | + |
| 147 | +void * uintsum(void * const sum, void const * const addent); |
| 148 | + |
| 149 | +size_t uinthshsame(void const * const element); |
| 150 | + |
| 151 | +int uintcmp(void const * const a, void const * const b); |
| 152 | + |
| 153 | +int uintrcmp(void const * const a, void const * const b); |
| 154 | + |
| 155 | +bool uintprint(void * const element, void * const format); |
| 156 | + |
| 157 | +void uintqsort(void * const array, size_t const lenght, void * const null); |
| 158 | + |
| 159 | +void uintrqsort(void * const array, size_t const lenght, void * const null); |
| 160 | + |
| 161 | +bool uinteven(void const * const element, void * const null); |
| 162 | + |
| 163 | +bool uintodd(void const * const element, void * const null); |
| 164 | + |
| 165 | +bool uintprime(void const * const element, void * const null); |
| 166 | + |
| 167 | +void floatdst(void * const element); |
| 168 | + |
| 169 | +void * floatcpy(void * const destination, void const * const source); |
| 170 | + |
| 171 | +void * floatsum(void * const sum, void const * const addent); |
| 172 | + |
| 173 | +size_t floathshsame(void const * const element); |
| 174 | + |
| 175 | +int floatcmp(void const * const a, void const * const b); |
| 176 | + |
| 177 | +int floatrcmp(void const * const a, void const * const b); |
| 178 | + |
| 179 | +bool floatprint(void * const element, void * const format); |
| 180 | + |
| 181 | +void floatqsort(void * const array, size_t const lenght, void * const null); |
| 182 | + |
| 183 | +void floatrqsort(void * const array, size_t const lenght, void * const null); |
| 184 | + |
| 185 | +void doubledst(void * const element); |
| 186 | + |
| 187 | +void * doublecpy(void * const destination, void const * const source); |
| 188 | + |
| 189 | +void * doublesum(void * const sum, void const * const addent); |
| 190 | + |
| 191 | +size_t doublehshsame(void const * const element); |
| 192 | + |
| 193 | +int doublecmp(void const * const a, void const * const b); |
| 194 | + |
| 195 | +int doublercmp(void const * const a, void const * const b); |
| 196 | + |
| 197 | +bool doubleprint(void * const element, void * const format); |
| 198 | + |
| 199 | +void doubleqsort(void * const array, size_t const lenght, void * const null); |
| 200 | + |
| 201 | +void doublerqsort(void * const array, size_t const lenght, void * const null); |
| 202 | + |
| 203 | +void sizedst(void * const element); |
| 204 | + |
| 205 | +void * sizecpy(void * const destination, void const * const source); |
| 206 | + |
| 207 | +void * sizesum(void * const sum, void const * const addent); |
| 208 | + |
| 209 | +size_t sizehshsame(void const * const element); |
| 210 | + |
| 211 | +int sizecmp(void const * const a, void const * const b); |
| 212 | + |
| 213 | +int sizercmp(void const * const a, void const * const b); |
| 214 | + |
| 215 | +bool sizeprint(void * const element, void * const format); |
| 216 | + |
| 217 | +void sizeqsort(void * const array, size_t const lenght, void * const null); |
| 218 | + |
| 219 | +void sizerqsort(void * const array, size_t const lenght, void * const null); |
| 220 | + |
| 221 | +bool sizeeven(void const * const element, void * const null); |
| 222 | + |
| 223 | +bool sizeodd(void const * const element, void * const null); |
| 224 | + |
| 225 | +bool sizeprime(void const * const element, void * const null); |
| 226 | + |
| 227 | +size_t stringhshmurmur(void const * const element); |
| 228 | + |
| 229 | +int stringcmp(void const * const a, void const * const b); |
| 230 | + |
| 231 | +int stringrcmp(void const * const a, void const * const b); |
| 232 | + |
| 233 | +bool stringprint(void * const element, void * const format); |
| 234 | + |
| 235 | +void stringqsort(void * const array, size_t const lenght, void * const null); |
| 236 | + |
| 237 | +void stringrqsort(void * const array, size_t const lenght, void * const null); |
| 238 | + |
| 239 | +#endif // DODAC_H |
0 commit comments