I know lstrcpy is used for string copy for both unicode and ascii, But I can not use lstrncpy, because I can't find the head file. What is the name of the head file, I googled it, and find someone is using it. Many thanks!
A:
If you know the length anyway, you can simply use memcpy (..., length * sizeof (char_type));
which will work for any character type.
Anteru
2009-06-29 12:16:44
A:
If you are asking about the Windows lstrcpy() function, it is declared in winbase.h, which normally gets included via windows.h
anon
2009-06-29 12:17:17
Woops think you just pipped me to the post!...no pun intended
James
2009-06-29 12:18:34