daily pastebin goal
34%
SHARE
TWEET

Untitled

a guest Jun 13th, 2018 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  if (verifica_ficheiro(f) == 1) {
  2.         return NULL;
  3.     } else {
  4.         while (fscanf(f, "%d %f %d %d %49[^\n]", &aux.id, &aux.preco, &aux.valor, &aux.estado, aux.nome) == 5) {
  5.             (*tam)++;
  6.             temp = realloc(vetor, sizeof (Guitarra)*(*tam));
  7.             vetor = temp;
  8.             *(vetor + (*tam) - 1) = aux;
  9.         }
  10.     }
  11.     fclose(f);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top