Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What library to include on Windows for stdlib.h functions?

I come from the Mac world, and am pretty new to Windows development. Very simply question: what libraries do I need to include in Visual Studio 2010 to get access to some basic functions like strtof() or snprintf()? Getting linker errors for these... #including <stdlib.h>, <ctype.h>, <string.h>

like image 612
Vern Jensen Avatar asked Oct 17 '25 18:10

Vern Jensen


1 Answers

MSVC does not support C99, and only halfway supports the older versions of the C standard. snprintf and strtof were added in C99, and thus not available.

like image 140
R.. GitHub STOP HELPING ICE Avatar answered Oct 20 '25 08:10

R.. GitHub STOP HELPING ICE



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!