Comment logic of strxcpy()

This commit is contained in:
Stas Degteff 2010-03-28 17:21:39 +00:00
parent 19fdb52aab
commit 20c366b27e
2 changed files with 4 additions and 1 deletions

View File

@ -92,6 +92,8 @@ char* StripQuotes(char* str);
// Safe versions of strcpy, strcat, sequencial strcat...
TCHAR *strxcpy(TCHAR *d, const TCHAR *s, size_t n);
// strxcpy: copy not more n-1 bytes of "s" into "d", insert '\0' into end of string.
// return d
char* strxcat(char *dest, const char *src, size_t max);
char* strxmerge(char *dest, size_t max, ...);

View File

@ -612,7 +612,8 @@ const char* strrword(const char* str, const char *separator) {
// ------------------------------------------------------------------
// copy not more n-1 bytes of "s" into "d", insert '\0' into end of string.
// return d
TCHAR *strxcpy(TCHAR *d, const TCHAR *s, size_t n)
{
#if defined(_tcsncpy_s)