Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //...
- else {
- student_node.id = get_next_id(student);
- fclose(student);
- printf(inp "(Skipped)\n\n");
- printf("Fullname: Maximum 64 characters.\n");
- printf(inp);
- fgets(input, 63, stdin);
- printf(ok);
- strcpy(student_node.fullname, input);
- printf("Form: Maximum 3 characters.\n");
- printf(inp);
- fgets(input, 4, stdin);
- printf(ok);
- strcpy(student_node.form, input);
- printf("Username: Maximum 30 characters.\n");
- printf(inp);
- fgets(input, 30, stdin); // gets ignored
- printf(ok);
- strcpy(student_node.username, input);
- printf("Password: Encrypted automatically. Maximum 30 characters.\n");
- printf(inp);
- fgets(input, 30, stdin);
- printf(ok);
- encode(input, encoded);
- strcpy(student_node.password, encoded);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement