just a quick test,

str_cpy() after strcpy releases an invalid pointer and crashes on exit, error W1516

though if use = instead of str_cpy after the initial c lib strcpy() then it works

there is no need to use & to pass the pointer to a variable, strcpy obviously achieves this

Many thanks Firoball! laugh
MrGuest