added strings.h for memcmp() prototypes