#include <string.h>	/* comply with own prototypes */

size_t	strlen(const char *s)
{
    int i=0;
    while(*s++) ++i;
    return i;
}

char	*strcpy(char *t, const char *s)
{
    char *t0 = t;
    while ((*t++ = *s++));
    return t0;
}

void	*memcpy(void *t, const void *s, size_t n)
{
    char *ct = t;
    const char *cs = s;

    while(n--)
	*ct++ = *cs++;

    return t;
}

void	bcopy(const void *src, void *dest, size_t n)
{
     memcpy(dest, src, n);
}



syntax highlighted by Code2HTML, v. 0.9.1