Eliminato l'assegnamento a cprefix nella CPutPref

git-svn-id: svn://10.65.10.50/trunk@579 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
alex 1994-11-10 11:19:02 +00:00
parent 51278d34a5
commit 265a0859d9

View File

@ -1503,19 +1503,18 @@ Se si utilizza spiegarne dettagliatamente il motivo.
*/
void CPutPref(pref)
char *pref; /* stringa contenente il nuovo prefisso */
char *pref; /* stringa contenente il nuovo prefisso */
{
FILE *f;
const int l = strlen(__ptprf);
if (l && strncmp(pref, __ptprf, l) == 0) pref += l + 1;
if ((f = fopen(prefname(), "w")) == NULL)
fatal_box("Put prefix. Error number : %d ", errno);
fprintf(f, "%s\n", pref);
fclose(f);
strcpy(cprefix, pref);
}
{
FILE *f;
const int l = strlen(__ptprf);
if (l && strncmp(pref, __ptprf, l) == 0) pref += l;
if ((f = fopen(prefname(), "w")) == NULL)
fatal_box("Put prefix. Error number : %d ", errno);
fprintf(f, "%s\n", pref);
fclose(f);
}
/*
@($) CAddPref FILES