I have a DLL in pure C code. I would like to find a way to remove the library name prefix from the functions, classes, and structs; EX:

```
// lib.h
void foobar();

```

```
// lib.hpp
namespace foo {
    bar();
}

```

I would like to avoid simply writing a wrapper for every function, since I'd have to write it for every time I want to add a function. Is there a better / more efficient way of writing this?

I started writing the wrapper idea, but there's a lot of functions to write this for. Void pointers worked a little better, but still had the same issue.