gcc has warning error. so I checked ret of c fn