Subversion Repositories WoWGM

Rev

Rev 9 | Rev 14 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 9 Rev 13
Line 77... Line 77...
77
//===========================================================================
77
//===========================================================================
78
extern DWORD SStrCopy(char* dest, char const* source, DWORD destsize)
78
extern DWORD SStrCopy(char* dest, char const* source, DWORD destsize)
79
{
79
{
80
	// TODO: ASSERT(dest);
80
	// TODO: ASSERT(dest);
81
	// TODO: ASSERT(source);
81
	// TODO: ASSERT(source);
82
 
-
 
83
	DWORD i;
-
 
84
	for (i = 0; i < destsize; i++)
82
	for (DWORD length = 0; length < destsize; length++)
85
	{
83
	{
86
		dest[i] = source[i];
84
		dest[length] = source[length];
87
		if (*source == '\0')
85
		if (*source == '\0')
88
			break;
86
			return length;
89
	}
87
	}
90
	return i;
88
	return 0;
91
}
89
}
92
 
90
 
93
//===========================================================================
91
//===========================================================================
94
extern int SStrCmp(char const* string1, char const* string2, DWORD maxchars)
92
extern int SStrCmp(char const* string1, char const* string2, DWORD maxchars)
95
{
93
{