#include #include #include int main() { int ret; size_t nbytes = 0; char *my_string = NULL; char *password = "23door42\n"; puts("Please enter Password: "); ret = getline(&my_string, &nbytes, stdin); if (ret == -1) { puts("Error"); } else if (strcmp(my_string, password) == 0) { puts("Success"); ret = 0; } else { puts("How about no?!"); ret = -1; } free(my_string); return ret; }