#include #include #include #include enum inputType { userMembership = 1, userLogin = 2 }; struct userInfo { char *userId; char *userPassword; char *userCheckPassword; }; void initId(struct userInfo *UserInfoId, const char *UserId) { UserInfoId->userId = strdup(UserId); if (UserInfoId->userId == NULL) { perror("USER ID ERROR\n"); exit(EXIT_FAILURE); } } void initPassword(struct userInfo *UserInfo..