Sack Library Documentation
ContentsIndexReferenceHome
PreviousUpNext
sack::memory::StrCpyEx Function
C++
MEM_PROC TEXTSTR MEM_API StrCpyEx(TEXTSTR s1, CTEXTSTR s2, size_t n);
Parameters 
Description 
TEXTSTR s1 
desitnation TEXTCHAR buffer 
CTEXTSTR s2 
source string 
length 
the maximum number of characters that S1 can hold. (this is not a size, but is a character count) 

copy S2 to S1, with a maximum of N characters. 

The last byte of S1 will always be a 'nul'. If S2 was longer than S1, then it will be truncated to fit within S1. Perferred method over this is SaveText or StrDup.

Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at support@toolsfactory.com.
Copyright (c) 2000+. All rights reserved.
What do you think about this topic? Send feedback!