added extern "C" to string.h