Advertisement
Elezerb

Untitled

Feb 18th, 2020
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.37 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include "listaVisite.h"
  4.  
  5. int main(int argc, char* argv[]) {
  6.   FILE* f;
  7.   Sito s;
  8.   Lista l;
  9.  
  10.   nuovaLista(&l);
  11.   if (argc != 2) {
  12.     printf("Errore apertura ./cronologia visite.dat");
  13.     exit(-1);
  14.   }
  15.  
  16.   if ((f = fopen(argv[1], "rb")) == NULL) {
  17.     printf("Errore apertura file binario \n");
  18.     exit(-2);
  19.   }
  20.  
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement