Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- temp = malloc(sizeof(AUTA *));
- printf("Zadajte:");
- fgets(temp->kategoria, 52, stdin);
- temp->kategoria[strlen(temp->kategoria) - 1] = '\0'; // \n
- printf("Zadajte:");
- fgets(temp->spz, 9, stdin);
- temp->spz[strlen(temp->spz) - 1] = '\0'; // \n
- printf("Zadajte:");
- fgets(temp->znacka, 52, stdin);
- temp->znacka[strlen(temp->znacka) - 1] = '\0'; // \n
- printf("Zadajte:");
- fgets(temp->predajca, 102, stdin);
- temp->predajca[strlen(temp->predajca) - 1] = '\0'; // \n
- printf("Zadajte:");
- scanf("%d", &temp->cena);
- printf("Zadajte:");
- scanf("%d", &temp->rokVyroby);
- printf("Zadajte:");
- fgets(temp->stav, 202, stdin);
- temp->next = NULL;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement