Pointer to an integer containing the number of characters in
the dynamic string (excluding the final null). This is used
to save repeated searching of this string to determine its
length and it defines the point where the new string will be
appended. Its value is updated by this function to include
the extra characters appended.
If "str1" is NULL, the initial value supplied for "nc" will
be ignored and zero will be used.