Renamed s_strncpyX to copy_string_to_sstring to reflect what it does.
Fixed copy_string_to_sstring to work as expected.
Simplified copy_n_sstring a bit.
Changed the return type of copy_string_to_sstring to int.