|
enum | __attribute__ ((__packed__)) |
|
Pair * | reisPairCreate (wchar_t *first, wchar_t *second) |
|
void | reisPairFree (Pair *p) |
|
Vec2 * | reisNewVec2 (int x, int y) |
| Create a new Vec2 datatype instance.
|
|
void | reisDelVec2 (Vec2 *v) |
| Destroy a Vec2 instance.
|
|
Map * | reisMapNew () |
|
void | reisMapInsert (Map *m, char key[], int value) |
|
int | reisMapGet (Map *m, char key[]) |
|
void | reisMapPrint (Map *m) |
|
void | reisMapDel (Map *m) |
|
List * | reisListNew (size_t n) |
|
void | reisListDel (List *a) |
|
MultiMap * | reisNewMultiMap () |
|
void | reisMultiMapInsert (MultiMap *m, wchar_t *key, void *value, size_t size) |
|
void ** | reisMultiMapGet (MultiMap *m, wchar_t *key, size_t *numValues) |
|
void | reisMultiMapPrint (MultiMap *m) |
|
void | reisDelMultiMap (MultiMap *m) |
|
wcs_dynarr_t * | wcs_dynarr_init () |
|
void | wcs_dynarr_kill (wcs_dynarr_t *arr) |
|
void | wcs_dynarr_push (wcs_dynarr_t *arr, wchar_t *item) |
|
TrieNode * | TrieNodeInit (wchar_t data, int numOfLetters) |
|
void | TrieNodeFree (TrieNode *node) |
|
TrieNode * | TrieInsert (TrieNode *root, wchar_t *word) |
| Inserts word onto the trie.
|
|
TrieNode * | TrieDelete (TrieNode *root, wchar_t *word) |
| Deletes words from trie. Will try to delete the word sequence from trie only if it ends up in a leaf node.
|
|
bool | TrieSearch (TrieNode *root, wchar_t *word) |
| Searches for a given word.
|
|
void | TriePrint (TrieNode *root) |
|
bool | TriePrintSearch (TrieNode *root, wchar_t *word) |
|
hashtable_t * | reisNewHashTable () |
|
void | reisDelHashTable (hashtable_t *table) |
|
void * | HashTableGet_str (hashtable_t *table, const char *key) |
|
void * | HashTableGet_wcs (hashtable_t *table, const wchar_t *key) |
|
const char * | HashTableSet_str (hashtable_t *table, const char *key, void *value) |
|
const wchar_t * | HashTableSet_wcs (hashtable_t *table, const wchar_t *key, void *value) |
|
size_t | reisHashTableLength (hashtable_t *table) |
|
hashtable_iterator_t | reisNewHashTableIterator (hashtable_t *table) |
|
bool | reisHashTableIteratorNext (hashtable_iterator_t it) |
|
int | reisDaemonize (const char *name, char *path, int flags) |
|
int | randi () |
| Uses the defined INT_MAX instead of passing bounds.
|
|
int | randib (int lb, int ub) |
|
char | randc () |
|
char * | rands (size_t len) |
|
int | isNum (const char *str) |
|
filesystem_t * | FS_Create (char *path) |
| Create a filesystem_t object.
|
|
void | FS_Destroy (filesystem_t *fs) |
| Terminates a filesystem_t object.
|
|
char | fpeek (FILE *stream) |
| View the next character in stream, doesn't move pointer.
|
|
wchar_t | fpeek_wc (FILE *stream) |
| Same as fpeek but for wchar_t.
|
|
char | fspeek (FILE *stream, long int offset, int position) |
| View a character at position without moving pointer; Peeks a seek.
|
|
int | frpeek (FILE *stream, char c) |
| A recursive peek that goes to end of line or EOF to get # of occurences.
|
|
int | frdpeek (FILE *stream, char d) |
| A recursive peek that goes till the delimter d .
|
|
int | fcounts (FILE *stream) |
| Character count of current line of buffer.
|
|
void | fcopy (FILE *dest, FILE *src) |
| Copies data from src file to dest file.
|
|
bool | fexists (const char *file) |
| Checks if file exists.
|
|
bool | fmove (char *oldpath, char *newpath) |
| Move data from oldpath file to newpath.
|
|
const char * | ExtractFileName (const char *path) |
| Returns filename.
|
|
const char * | ExtractFileExtension (const char *filename) |
| Returns file extension.
|
|
bool | dexists (const char *path) |
| Checks if directory exists.
|
|
void | sgets (char *str, int n) |
| A safe way to read input that ensures no misc LF or breaks in read string.
|
|
bool | PromptYesOrNo (const char *question) |
| Prompts the user with a yes or no question.
|
|
| CHECK_PRINTF_FMT (1, 2) void eprintf(const char *fmt |
|
| CHECK_PRINTF_FMT (1, 3) void cprintf(const char *color |
|
const char char * | strdupl (const char *str) |
| Implmentation of 'strdup,' using my MALLOC.
|
|
char * | strcov (char *str, const char *charset) |
| Checks if string covers all of charset.
|
|
wchar_t * | wcscov (wchar_t *str, const wchar_t *charset) |
|
const char * | strset (const char *string, const char *charset) |
| Checks to see if string contains only characters in charset .
|
|
const wchar_t * | wcsset (const wchar_t *string, const wchar_t *charset) |
|
char * | strpcat (char *dest, const char *src, size_t pos) |
| concatenate but at a give 'p' position.
|
|
wchar_t * | wcspcat (wchar_t *dest, const wchar_t *src, size_t pos) |
|
char * | chrcat (char *dest, const char src) |
| Concatenate a char on to the end of a string.
|
|
wchar_t * | wccat (wchar_t *dest, const wchar_t src) |
|
int | strchrn (const char *string, char ch) |
| Get number of times that ch appears in string .
|
|
int | wcswcn (const wchar_t *string, wchar_t ch) |
| (Wide-char variant) Get number of times that ch appears in string .
|
|
wchar_t * | wcsrev (wchar_t *str) |
| Reverses the wide character string.
|
|
char * | strpre (char *str, char chr) |
|
wchar_t * | wcspre (wchar_t *str, wchar_t chr) |
| Prepends a character to a wide character string.
|
|
char * | strpres (char *str, char *pre) |
|
wchar_t * | wcspres (wchar_t *str, wchar_t *pre) |
|
char * | strisdigit (char *str) |
| Confirms that string is entirely composed on numbers.
|
|
wchar_t * | wcsisdigit (wchar_t *str) |
| Confirms that wcstring is entirely composed on numbers.
|
|
long | hash (const char *str) |
|
void * | reisMalloc (size_t size) |
|
void * | reisCalloc (size_t nitems, size_t size) |
|
void * | reisRealloc (void *ptr, size_t size) |
|
size_t | reisMemGet (void *ptr) |
|
size_t | reisFree (void *ptr) |
|
size_t | reisMemGetAll () |
|
void | reisInsertionSort (int arr[], int len) |
|
void | reisMergeSort (int arr[], int len) |
|
void | reisSort (int arr[], int len) |
|
Shared typedefs and functions.
- Author
- yung-turabian
- Date
- 4 8 2024