A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
It's not safe but you could call the library function using a properly sized string s -
test_func(reinterpret_cast<const char(*)[4]>(s.c_str()));