fixed unix c definition; fixed string cast