First ffi function working properly