¡Use stylistic rules to compile
fingerprint:
lCommenting
lVariable names
lFormatting
lStyle (e.g., K&R)
¡Use this along with program
structure
lEdit distance
lWhat about hypertext structure?
¡/***********************************
•* 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++;
¡}
¡