Imam sledeci problem. Napisao sam program koji treba da mi izbaci nepotrebne linkove iz fajla input_file i da ih upise u output_file. Posto sa komandom emerge -pvf some_package (koristim inace gentoo linux) dobijam gomilu adresa, a meni treba fajl bez duplirajucih adresa tako da kada zelim da negde na brzinu skinem sve te fajlove, da importujem linkove. Ali za while(feof(input_file)) dobijam nulu kao da je vec vpos_t postavljen na kraj fajla, a tek sam ga otvorio sa f-jom fopen(argv[argn-2], "r"). Inace prilazem kompletan source. Prilozio sam i fajl koji bi trebalo skratiti, ako zelite da isprobate program.
Ken Thompson has an automobile which he helped design. Unlike most automobiles, it has neither speedometer, nor gas gauge, nor any of the other numerous idiot lights which plague the modern driver. Rather, if the driver makes a mistake, a giant “?” lights up in the center of the dashboard. “The experienced driver,” says Thompson, “will usually know what’s wrong.”