Lab3/Lab3.c
/*
1. The function strcat in <string.h> appends a source string to a destination
   string. It returns the destination string. Write a version of the function
   char *my_strcat(char *dest, char *src)
*/
1. The function strcat in  appends a source string to a destination
string. It returns the destination string. Write a version of the function
char *my_strcat(char *dest, char *src)
1 . The function strcat in appends a source string to a destination string . It returns the destination string . Write a version of the function char * my_strcat ( char * dest char * src )
char *my_strcat(char *dest, char *src) {
    char *start = dest;
    while(*dest != '\0') {
        dest++;
    }
    while(*src != '\0') {
        *dest = *src;
        dest++;
        src++;
    }
    *dest = '\0';
    return start;
}
char * my_strcat ( char * dest , char * src ) { char * start = dest ; while ( * dest != ' \0 ' ) { dest ++ ; } while ( * src != ' \0 ' ) { * dest = * src ; dest ++ ; src ++ ; } * dest = ' \0 ' ; return start ; }
1.
1 .