Fixed libc C++ interface API usage inconsistency