MyStr

Deadline: September 9th, 2014

1   Instructions

You must implement the following functions, whose behavior must match the documentation for the standard function of the same name (without my_):

const char *my_strchr(const char *s, int c);
unsigned my_strlcpy(char *dst, const char *src, unsigned n);
unsigned my_strlcat(char *dst, const char *src, unsigned n);
int my_strncmp(const char *s1, const char *s2, unsigned n);
void *my_memcpy(void *dst, const void *src, unsigned n);
void *my_memset(void *dst, int c, unsigned n);

You can optionally also implement the following for a higher grade (see Grading below):

const char *my_strrchr(const char *s, int c);
const char *my_strpbrk(const char *s1, const char *s2);
const char *my_strstr(const char *s1, const char *s2);
void *my_memmove(void *dst, const void *src, unsigned n);

Constraints:

2   Grading