Non overwriting insert function: this if an element with the same key * exists, the value is not updated and the function returns 0. * This is a just a wrapper for raxGenericInsert(). */
| 909 | * exists, the value is not updated and the function returns 0. |
| 910 | * This is a just a wrapper for raxGenericInsert(). */ |
| 911 | int raxTryInsert(rax *rax, unsigned char *s, size_t len, void *data, void **old) { |
| 912 | return raxGenericInsert(rax,s,len,data,old,0); |
| 913 | } |
| 914 | |
| 915 | /* Find a key in the rax, returns raxNotFound special void pointer value |
| 916 | * if the item was not found, otherwise the value associated with the |
no test coverage detected