Add an implementation for strdup.
|17–22 ↗||(On Diff #379188)|
This is a good find. Assuming that allocators are but one of the "external" functions that LLVM libc will provide, I think we should have a scalable solution for this. So, may be add a new cmake rule called add_external_entrypoint which does nothing but create a dummy target that can be listed in places like entrypoints.txt?
This is a C library implementation. So, the style should be snake_case for variable names. Or, you can completely avoid this conundrum by renaming the src to old and newStr to str.