I know the starting address of the string(e.g., char* buf) and the max length int l; of the string(i.e., total number of characters is less than or equ
char* buf
int l;
std::string str; char* const s = "test"; str.assign(s);
string& assign (const char* s); => signature FYR
Reference/s here.