Win32 and string functions

I'm working through some assignments for class using Visual Studio 2008, and I noticed that I seem to be able to use c-string manipulation functions like strcmp(), strcat(), etc. without including the cstring header file. I'm also able to do Unicode functions like wcscat_s() without including any extra headers.

Is this simply a normal side-effect of #include <windows.h>? The text we're using is written around Visual Studio 2003 (it's an older text, obviously) and says that we should have to #include <cstring> to have access to these functions.

This is all basic Win32 API stuff, no MFC or anything yet. (It's introduced next chapter.) I'd like to understand what's going on here before I move on any further.

The project was created as a Win32 application; empty project. Only preprocessor statement is #include <windows.h>

Thanks!
The header files have been updated a number of times, so even though the code was VS 2003, the header files are VS 2008, since that's what you're using.
Last edited on
Topic archived. No new replies allowed.