Microsoft Interview Question

How to write the string to float function atof()