Use the following code as the main() of your test program.
int main()
{
int cmp; /* return value for concatenation functions */
char str1[80] = "";
char str2[80] = "";
cmp = strcmp_my(str1, str2);
printf("strcmp_my (%d) shows that '%s' and '%s' are the same.\n",
cmp, str1, str2);
cmp = strncmp_my(str1, str2, 3);
printf("strncmp_my (%d) shows that '%.3s' and '%.3s' are the same.\n",
cmp, str1, str2);
strcpy_my(str2, "string");
printf("The length of str2, '%s', is %d.\n",
str2, strlen_my(str2));
strncpy_my(str1, &str2[3], 3);
str1[3] = '\0';
printf("str1 now contains '%s'.\n", str1);
strcat_my(str2, str1);
printf("str2 now contains '%s'.\n", str2);
strcpy_my(str1, "sing");
printf("str1 now contains '%s'.\n", str1);
strncat_my(str1, &str2[3], 3);
printf("str1 now contains '%s'.\n", str1);
strcpy_my(str1, "string");
strcpy_my(str2, "string");
cmp = strcmp(str1, str2);
printf("strcmp_my (%d) shows that '%s' and '%s' are the same.\n",
cmp, str1, str2);
strcpy_my(str2, "strong");
cmp = strcmp_my(str1, str2);
printf("strcmp_my (%d) shows that '%s' is less than '%s'.\n",
cmp, str1, str2);
cmp = strcmp_my(str2, str1);
printf("strcmp_my (%d) shows that '%s' is greater than '%s'.\n",
cmp, str2, str1);
cmp = strncmp_my(str1, str2, 3);
printf("strncmp_my (%d) shows that '%.3s' and '%.3s' are the same.\n",
cmp, str1, str2);
cmp = strncmp_my(str1, str2, 4);
printf("strncmp_my (%d) shows that '%.4s' is less than '%.4s'.\n",
cmp, str1, str2);
cmp = strncmp_my(str2, str1, 4);
printf("strncmp_my (%d) shows that '%.4s' is greater than '%.4s'.\n",
cmp, str2, str1);
return 0;
}