Include the proper headers, or declare functions manually. For strcmp(), you need .
Not pass an invalid pointer such as NULL to strcmp(), since it doesn't protect against it and will dereference the pointer, thus causing undefined behavior in your program.