/** Solution to exercise 10.7, p. 355, "C by Dissection" * * 10. March, 2003. Lone Leth Thomsen **/ #include #include #include int mystrncmp(const char* s1, const char* s2, size_t n) { int i; int ret = 0; for (i=0; i