Documentation Project 1
ContentsIndexHome
PreviousUpNext
sack::memory::StrCpyEx Function
C++
MEM_PROC TEXTSTR MEM_API StrCpyEx(TEXTSTR s1, CTEXTSTR s2, int 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.

Copyright (c) 2010. All rights reserved.
What do you think about this topic? Send feedback!