if ((l_fp = fopen("ed.hup", "w")) == NULL) {
/* Try writting ed.hup to the $HOME directory instead. */
l_temp = getenv("HOME");
if ((l_temp == NULL) || ((strlen(l_temp) + 7) > FILENAME_LEN))
if ((l_fp = fopen("ed.hup", "w")) == NULL) {
/* Try writting ed.hup to the $HOME directory instead. */
l_temp = getenv("HOME");
if ((l_temp == NULL) || ((strlen(l_temp) + 7) > FILENAME_LEN))
strcpy(l_filename, l_temp);
strcat(l_filename, "/ed.hup");
if ((l_fp = fopen(l_filename, "w")) == NULL)
strcpy(l_filename, l_temp);
strcat(l_filename, "/ed.hup");
if ((l_fp = fopen(l_filename, "w")) == NULL)