int n = count; char* p = &m.str; while (n--) { ....blah... *p++ = savepvn(string,len); }