stpcpy.c

Archipelago/slave/stpcpy.c · 202 B

From the archive archipelago-1.1.tar.gz

Download the archive   « Back to the archive contents

/* copy a string, returning pointer to the null terminator of dest */
char *stpcpy(char *dest, const char *src)
{
    while( (*dest = *src) ) {
        ++dest;
        ++src;
    }
    return (dest);
}

Site Stats

Snippets: 1791
Codebases: 571