Hey, just curious. Is atof() a C++ only function or will it work in standard C?

Recommended Answers

All 6 Replies

Have you checked a C reference? We're generally miffed when people ask questions that are easy to look up.

Have you checked a C reference? We're generally miffed when people ask questions that are easy to look up.

I've googled it, but I'm kind of confused. Could you point me to one of these C references? Thanks, sorry.

Hey, just curious. Is atof() a C++ only function or will it work in standard C?

atof works with C standard too,jus include <stdlib.h> in your code

>Could you point me to one of these C references?
I'm a fan of Dinkumware's reference. It covers both C and C++, up to the latest standards.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.