memory pool write by c