[Frugalware-darcs] setup-current: postconf: new function:
append_font()
VMiklos
vmiklos at frugalware.org
Thu Mar 16 18:08:32 CET 2006
[postconf: new function: append_font()
VMiklos <vmiklos at frugalware.org>**20051121221148] {
hunk ./src/plugins/postconf.c 120
+int append_font(char *fn, char *font)
+{
+ FILE* fp;
+
+ if((fp=fopen(fn, "a"))==NULL)
+ {
+ perror("Could not open output file for appending");
+ return(1);
+ }
+ fprintf(fp, "font=%s\n", font);
+ fclose(fp);
+ return(0);
+}
+
hunk ./src/plugins/postconf.c 161
+ append_font("etc/sysconfig/font", (char*)data_get(*config, "font"));
+
}
More information about the Frugalware-darcs
mailing list