Advertisement
Guest User

Untitled

a guest
Jan 19th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. int ucitaj_artikle(struct Artikal *niz, int kap) {
  2. int ucitano;
  3. FILE* dat = fopen("artikli.bin", "rb");
  4. if (!dat) {
  5. printf("Neuspjesno otvaranje datoteke!");
  6. exit(1);
  7. }
  8. ucitano = fread(niz, sizeof(struct Artikal), kap, dat);
  9. fclose(dat);
  10. return ucitano;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement