int ar_open(FILE **f, const char * path) { char buf[8]; int count; /* open the file */ if ((*f = (FILE*)fopen(path, "r"))==NULL) { ar_error("error: cannot open file"); return E_AR_OPEN; } /* header */ read(*f, &buf, 8); // warning: passing arg 1 of `read' makes integer from pointer without a cast
skusal som priblizne tieto varianty prveho argumentu: f,*f,**f,***f,(FILE*)f,(FILE**)f,(FILE***)f,(FILE*)*f,... mozno som nieco zabudol, kompilujem s -Wall -pedantic
Opravena funkcia: