Advertisement
Guest User

Untitled

a guest
Feb 18th, 2016
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.84 KB | None | 0 0
  1. //...
  2. else {
  3.                         student_node.id = get_next_id(student);
  4.                         fclose(student);
  5.                         printf(inp "(Skipped)\n\n");
  6.                         printf("Fullname: Maximum 64 characters.\n");
  7.                         printf(inp);
  8.                         fgets(input, 63, stdin);
  9.                         printf(ok);
  10.                         strcpy(student_node.fullname, input);
  11.                         printf("Form: Maximum 3 characters.\n");
  12.                         printf(inp);
  13.                         fgets(input, 4, stdin);
  14.                         printf(ok);
  15.                         strcpy(student_node.form, input);
  16.                         printf("Username: Maximum 30 characters.\n");
  17.                         printf(inp);
  18.                         fgets(input, 30, stdin); // gets ignored
  19.                         printf(ok);
  20.                         strcpy(student_node.username, input);
  21.                         printf("Password: Encrypted automatically. Maximum 30 characters.\n");
  22.                         printf(inp);
  23.                         fgets(input, 30, stdin);
  24.                         printf(ok);
  25.                         encode(input, encoded);
  26.                         strcpy(student_node.password, encoded);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement