What is the difference between strcat_s() and strcat()
-
Hi All, I could not find the actual difference between strcat_s() and strcat(). Is it possible to use this in MSVC++ 6.0, boz when I tried to strcat_s() I got the error "error C2065: 'strncpy_s' : undeclared identifier" (i hv tried using both #include <string.h> and #include <string>). And other doubt is whether this will work both in UNIX and windows, as I am developing a C++ application which should be platform independent. If i want to use strcat_s() in MSVC++ 6.0 which include file i need to use. Thanks Nandu
-
Hi All, I could not find the actual difference between strcat_s() and strcat(). Is it possible to use this in MSVC++ 6.0, boz when I tried to strcat_s() I got the error "error C2065: 'strncpy_s' : undeclared identifier" (i hv tried using both #include <string.h> and #include <string>). And other doubt is whether this will work both in UNIX and windows, as I am developing a C++ application which should be platform independent. If i want to use strcat_s() in MSVC++ 6.0 which include file i need to use. Thanks Nandu
Nandu_77b wrote:
Is it possible to use this in MSVC++ 6.0,
I don't think so. The "safe" string functions came with the CRT starting with VC 2005.
And please post non-C++/CLI questions on the Visual C++/MFC board.
MarkMark Salsbery Microsoft MVP - Visual C++ :java: