4 /* print contents of array */
5 void print_array(char s
[])
8 for(i
= 0; i
< strlen(s
); i
++)
13 /* previous version of strcat */
14 void strcat_old(char s
[], char t
[])
20 while((s
[i
++] = t
[j
++]) != '\0')
24 /* copy string of chars from t into s */
25 void strcopy(char *s
, char *t
)
30 /* pointer version of strcat - add string t to end of string s */
31 void strcatptr(char *s
, char *t
)
33 while(*s
) { ++s
; } // find pointer val for end of string s
40 char s
[] = { "this is a string of chars " };