I'm struggling to find pragmatic real-world advice on function naming conventions for a medium sized C library project. My library project is separated into a few modules and submodules with their own headers, and loosely follows an OO style (all functions take a certain struct as first argument, no globals etc). It's laid our something like:
Generally the functions are far too big to (for example) stick
another_foo_action in one
foo.c implementation file, make most functions static, and call it a day.
I can deal with stripping my internal ("module private") symbols when building the library to avoid conflicts for my users with their client programs, but the question is how to name symbols in my library? So far I've been doing:
void MyLibFooSomeAction(MyLibFoo *foo, ...);
void MyLibBarAnAction(MyLibBar *bar, ...);
void MyLibFooBazAnotherAction(MyLibFooBaz *baz, ...);
But I'm ending up with crazy long symbol names (much longer than the examples). If I don't prefix the names with a "fake namespace", modules' internal symbol names all clash.
Note: I don't care about camelcase/Pascal case etc, just the names themselves.