Advertisement
Guest User

Untitled

a guest
Nov 26th, 2014
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. temp = malloc(sizeof(AUTA *));
  2. printf("Zadajte:");
  3. fgets(temp->kategoria, 52, stdin);
  4. temp->kategoria[strlen(temp->kategoria) - 1] = '\0'; // \n
  5. printf("Zadajte:");
  6. fgets(temp->spz, 9, stdin);
  7. temp->spz[strlen(temp->spz) - 1] = '\0'; // \n
  8. printf("Zadajte:");
  9. fgets(temp->znacka, 52, stdin);
  10. temp->znacka[strlen(temp->znacka) - 1] = '\0'; // \n
  11. printf("Zadajte:");
  12. fgets(temp->predajca, 102, stdin);
  13. temp->predajca[strlen(temp->predajca) - 1] = '\0'; // \n
  14. printf("Zadajte:");
  15. scanf("%d", &temp->cena);
  16. printf("Zadajte:");
  17. scanf("%d", &temp->rokVyroby);
  18. printf("Zadajte:");
  19. fgets(temp->stav, 202, stdin);
  20. temp->next = NULL;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement