concatenate at most n characters of string t to string s, terminate s with '\0'; return s