2 int strcmp(
const char* lhs,
const char* rhs) {
4 while (lhs[index] && rhs[index]) {
5 if (lhs[index] != rhs[index]) {
6 return lhs[index] - rhs[index];
10 return lhs[index] - rhs[index];
12 void*
memcpy(
void* dst,
void const * src,
int n) {
13 for (
int i = 0; i < n; ++i) {
14 ((
char *)dst)[i] = ((
char*)src)[i];
void * memcpy(void *dst, void const *src, int n)
int strcmp(const char *lhs, const char *rhs)