Deadline: September 9th, 2014
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:
Copyright © 2014, Raphael ‘kena’ Poss. Permission is granted to distribute, reuse and modify this document and other documents for the Systems Programming course by the same author according to the terms of the Creative Commons Attribution-ShareAlike 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/4.0/.