how to return two things from c function