Share via


CSimpleStringT::CopyCharsOverlapped

Copies a character or characters to a CSimpleStringT object.

static void CopyCharsOverlapped( 
   XCHAR* pchDest, 
   const XCHAR* pchSrc, 
   int nChars  
) throw( );

Parameters

  • pchDest
    A pointer to a character string.

  • pchSrc
    A pointer to a string containing the characters to be copied.

  • nChars
    The number of pchSrc characters to be copied.

Remarks

Call this method to copy characters from pchSrc to the pchDest string. Unlike CopyChars, CopyCharsOverlapped provides a safe method for copying from character buffers that might be overlapped.

Example

See the example for CSimpleStringT::CopyChars, or the source code for CSimpleStringT::SetString (located in atlsimpstr.h).

Requirements

Header: atlsimpstr.h

See Also

Reference

CSimpleStringT Class