is the following the same???
void strcat(char s[], char t[])
{
int i,j;
i = 0;
while (s) i++;
j = 0;
while(t[j])
{
s = t[j];
j++;
i++;
}
s=0;
}
________________________________________________
void strcat ( char *sPtr , char *tPtr )
{
int i , j;
i = 0;
while ( *(sPtr + i) ) i++;
j = 0;
while ( *(tPtr + i) )
{
*(sPtr + i) = *(tPtr + i);
j++;
i++;
}
*(sPtr + i) = 0;
}
void strcat(char s[], char t[])
{
int i,j;
i = 0;
while (s) i++;
j = 0;
while(t[j])
{
s = t[j];
j++;
i++;
}
s=0;
}
________________________________________________
void strcat ( char *sPtr , char *tPtr )
{
int i , j;
i = 0;
while ( *(sPtr + i) ) i++;
j = 0;
while ( *(tPtr + i) )
{
*(sPtr + i) = *(tPtr + i);
j++;
i++;
}
*(sPtr + i) = 0;
}