Version 1.6: Added my_strncpy function