diff options
author | Raghuram Subramani <raghus2247@gmail.com> | 2025-07-29 21:31:45 +0530 |
---|---|---|
committer | Raghuram Subramani <raghus2247@gmail.com> | 2025-07-29 21:31:45 +0530 |
commit | c88c251b899ca0e0b3fe34217bdf2d6ce1b677be (patch) | |
tree | 3c34b113779975d905d06c9667a085520b784a85 | |
parent | 46f3de7578f57a9839b92e9e5194fe22730588bd (diff) |
util: get_wrapped()
-rw-r--r-- | include/util.h | 1 | ||||
-rw-r--r-- | src/util.c | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/include/util.h b/include/util.h index bd2d25c..4c6faf6 100644 --- a/include/util.h +++ b/include/util.h @@ -9,5 +9,6 @@ char *ltrim(char *s); char *rtrim(char *s); char *trim(char *s); ptr_wrapper_t *wrap_ptr(void *ptr); +void *get_wrapped(ptr_wrapper_t *wrapper); #endif @@ -34,3 +34,9 @@ wrap_ptr(void *ptr) wrapper->ptr = ptr; return wrapper; } + +void * +get_wrapped(ptr_wrapper_t *wrapper) +{ + return wrapper->ptr; +} |