Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
380 B

  1. #if !defined(BASE__String_inl__INCLUDED)
  2. #define BASE__String_inl__INCLUDED
  3. #pragma once
  4. //------------------------------------------------------------------------------
  5. inline void
  6. CopyString(WCHAR * pszDest, const WCHAR * pszSrc, int cchMax)
  7. {
  8. wcsncpy(pszDest, pszSrc, cchMax);
  9. pszDest[cchMax - 1] = '\0';
  10. }
  11. #endif // BASE__String_inl__INCLUDED