aboutsummaryrefslogtreecommitdiff
path: root/ft_strcpy.c
blob: 8f3946d7226a08830f38ab448030fdc0b7a7bf1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
char    *ft_strcpy(char *dest, const char *src)
{
    int i;

    i = 0;
    while (src[i])
    {
        dest[i] = src[i];
        i++;
    }
    dest[i] = '\0';
    return (dest);
}