Idiom #46 Extract beginning of string (prefix)
Create string t consisting of the 5 first characters of string s.
Make sure that multibyte characters are properly handled.

programming-idioms.org
Create string t consisting of the 5 first characters of string s.
Make sure that multibyte characters are properly handled.