Hi I'm having trouble with some code...I'm getting all kinds of nasty errors and can't figure out how to fix them. this program takes one string and adds it onto the end of another.

Code:
#include <stdio.h>
 
int my_strlen( char s[]) 
{
  int i = s[0];
 
  while( s[i] != '0')
    ++i;
 
  return i;
}
 

 
char * my_strappend( char s1[], char s2[])
{
  int i, j;
 
  for( i = 0, j = strlen(s2); s1[i] != 0; ++i, ++j)
    s2[j] = s1[i];
 
  s2[j] = s1[i];
 
  return s2;
}
 
int main( void)
{
    
  char name="buf"; 
 
  char buf[100] = { 'a', 'b', 'c' }; 
 
  printf( "my_strlen(buf) = %d\n", my_strlen(buf) );
 
  my_strappend( buf, name); 
 
  printf( "name = %s, buf = %s\n", name, buf);
 
  return 0;
}
Any help would be great, thank you!