I encapsulated just this function as extern "C" to avoid YAGNI