You can use strncpy (tgtString, srcString, NumberOfCharacters);
Please read carefully the online help for the function to understand its behaviour in the various cases: it is normally enough to add
tgtString[NumberOfCharacters] = 0; to ensure that the string is null-terminated, but you must be aware of strncoy behaviour with different lenght strings.