Hey all, thanks for all continuous help. Was wondering, a way to do this without declaring the FILE *refig in main (passing a pointer between functions). Thanks!
Code:#include <stdio.h> void refrigerator_func(void); int main( void ) { refrigerator_func(); } void refrigerator_func(void) { FILE *refrig; // ... fclose(refrig); } void add_entry(void) { // .. fputs(fride_string, refrig); fputs("\n"); }
P.S., it will be 1 year next month since I started C.