Show reason when cannot open a file, and some stuffs #3

Open
K4zoku wants to merge 4 commits from K4zoku/master into master
Showing only changes of commit 07dd0e0822 - Show all commits

View file

@ -91,11 +91,9 @@ int main(int argc, char *argv[])
return 0; return 0;
} }
ifp = open_file(ifn, "r"); ifp = open_file(ifn, "r");
ofp = open_file(ofn, "w"); ofp = open_file(ofn, "w");
rbuf = NULL; rbuf = NULL;
while (len = getline(&rbuf, &buflen, ifp)) { while (len = getline(&rbuf, &buflen, ifp)) {
int type; int type;