Microsoft interview question

How to write the string to float function atof()