|
strcpy in MT apps leaks memory?
I was at an interview last friday for a CPP job.
The guy conducting the interview asked me how proficient I was with MSVC. He then later asked me about what problems are there when using strcpy in a MT (Multi-Threaded) app?
I said none, it can be used as nomal. He said no, strcpy produces memory leaks when used in a MT app and he claimed that MS recommends using the Win32 API StrCpy instead of the STDC strcpy function. He said MS did this on purpose to force devs to use the Win32 equivalent.
Is this true for MSVC6? Is there any way for me to verify this accurately in MSVC 7.1?
|