aboutsummaryrefslogblamecommitdiff
path: root/5.3.c
blob: 940e2fa2e709f58cfa45624b64a85c786c3b245f (plain) (tree)
























                                       
#include <stdio.h>

char *strcat(char to[], char from[]);

int 
main(void)
{
  char str[10] = "glow";

  printf("%s\n", strcat(str, " bois"));

  return 0;
}

char 
*strcat(char to[], char from[])
{
  while(*to++)
    ;

  while ((*to++ = *from++))
    ;

  return to;
}