: your logical error is here
:
:
:
: for (i = 0; i < strlen(ct); i++)// this care only for the lenght of ct
: {
: s[start + i] = ct[i];// start+i(s) is not greater than array size
: }
: :
No that looks fine, start is used as an offset to determine where the "s" string ends.