| 78 | Returns |NULL| if memory allocation failed. */ |
| 79 | |
| 80 | map_t map_create(enum map_flags flags) |
| 81 | { |
| 82 | map_t tree; |
| 83 | |
| 84 | avl_malloc(tree, sizeof *tree, flags); |
| 85 | |
| 86 | if (tree == NULL) |
| 87 | return NULL; |
| 88 | |
| 89 | tree->avl_root = NULL; |
| 90 | tree->flags = flags; |
| 91 | tree->avl_count = 0; |
| 92 | |
| 93 | |
| 94 | return tree; |
| 95 | } |
| 96 | |
| 97 | /* Search |tree| for an item matching |item|, and return it if found. |
| 98 | Otherwise return |NULL|. */ |
no outgoing calls
no test coverage detected