strcmp compare two string memcmp compare two block of memory these two functions are quite different |
int strcmp(const char *s1, const char *s2);
int strncmp(const char *s1, const char *s2, size_t n);
strcmp compare two string memcmp compare two block of memory these two functions are quite different |
int strcmp(const char *s1, const char *s2);
int strncmp(const char *s1, const char *s2, size_t n);