Hey guys ..
every time i use strcpy in my program i get a warning .. not an error but just a warning .. and i have to get rid of these warning ..
I have a note saying that i should use the strcpy_s function ..
however when i use it i'm getting that it accept only one argument ..
So can somebody please explain me the input arguments of this function ?
i tried to search the reference but i didn't get it ..
thanks alot
If you are using C++, I would advise using std::string over the old C-style strings. It will make your life a lot easier. However, the MSDN reference states that it takes multiple arguments:
MSDN wrote:
strDestination
Location of destination string buffer
numberOfElements
Size of the destination string buffer.
strSource
Null-terminated source string buffer