if (!save_rc()) return;
tempfile = typecallocn(char, LY_MAXPATH); if (!tempfile) { HTAlwaysAlert(NULL, NOT_ENOUGH_MEMORY); return; } rcfp = LYOpenTemp(tempfile, ".rc" , "w"); if (rcfp == NULL) { FREE(tempfile); HTAlwaysAlert(NULL, CANNOT_OPEN_TEMP); return; } if (!save_rc(rcfp)) { HTAlwaysAlert(NULL, OPTIONS_NOT_SAVED); LYRemoveTemp(tempfile); FREE(tempfile); return;     }
PUBLIC void reload_read_cfg NOARGS{    if (LYRestricted) return;  /* for sure */    /* save .lynxrc file in case we change something from Options Menu */    if (!save_rc()) return;    /* can not write the very own file :( */    {	/* set few safe flags: */#ifdef PERSISTENT_COOKIES	BOOLEAN persistent_cookies_flag = persistent_cookies;	char * LYCookieFile_flag = LYCookieFile;#endif	free_lynx_cfg(); /* free downloaders, printers, not always environments */	/*	 *  Process the configuration file.	 */	read_cfg(lynx_cfg_file, "main program", 1, (FILE *)0);	/*	 *  Process the RC file.	 */	read_rc();	/* We are not interested in startfile here */	/* but other things may be lost: */	/*	 *  Process any command line arguments not already handled.	 */		/* Not implemented yet here */	/*	 *  Process any stdin-derived arguments for a lone "-"  which we've	 *  loaded into LYStdinArgs.	 */		/* Not implemented yet here */	/*	 *  Initialize other things based on the configuration read.	 */		/* Not implemented yet here,		 * a major problem: file paths		 * like lynx_save_space, LYCookieFile etc.		 */#ifdef PERSISTENT_COOKIES	/* restore old settings */	 if (persistent_cookies != persistent_cookies_flag) {	     persistent_cookies = persistent_cookies_flag;	     HTAlert(gettext("persistent cookies state will be changed in next session only."));	 }	 if (strcmp(LYCookieFile, LYCookieFile_flag)) {	     StrAllocCopy(LYCookieFile, LYCookieFile_flag);	     CTRACE(tfp, "cookies file can be changed in next session only, restored.\n")	 }#endif    }}