If you need type casts depends on your compiler version and project settings. But you can redefine the functions with const char* in afuncs.h - they have been defined with char* for using the same header both in C++ and lite-C.