c functions seems to be correct now

possible fix of c external library.