Search code examples
cwindowsc-standard-library

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>


Solution

  • 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.