¡/***********************************
•* This function concatenates the first and
•* second string into the third string.
¡*************************************
¡void strcat(char *string1, char *string2, char
*string3)
¡{
¡ char *ptr1, *ptr2;
¡ ptr2 = string3;
¡/*
¡ * Copy first string
¡ */
¡for(ptr1=string1;*ptr1;ptr1++) {
¡*(ptr2++) = *ptr1;
¡}
¡
¡
¡
¡/*
¡ * concatenate s2 to s1 into s3.
¡ * Enough memory for s3 must already be allocated. No checks !!!!!!
¡ */
¡mysc(s1, s2, s3)
¡
char *s1, *s2, *s3;
¡{
¡ while
(*s1)
¡
*s3++ = *s1++;
¡
¡ while
(*s2)
¡
*s3++ = *s2++;
¡}
¡
What about hypertext
structure
in
the web?