Step: Brief Discussion:
In the illustration, shown below, the function strncpy(----) of
C/cstrlib library, trims the length of a string, from left to right.
In this case a pointer/array, sets the beginning of a target
sequence or string. With string class of C++ language,
string::substr(---) function allows you to select the length of a
substring.