19static stralloc
data = {0};
21int getconf(stralloc *sa,
const char *
fn,
int flagrequired,
const char *
dir)
29 switch (openreadclose(
fn,&
data,128)) {
31 case 0:
if (!flagrequired)
return 0;
39 for (j = 0; j <
data.len; ++j)
40 if (
data.s[j] ==
'\n') {
42 while ((k > i) && ((
data.s[k-1] ==
' ') || (
data.s[k-1] ==
'\t')))
44 if ((k > i) && (
data.s[i] !=
'#')) {
56 sa->len = byte_chr(sa->s,sa->len,0);
Error messages. If you translate these, I would urge you to keep the English version as well....
int getconf(stralloc *sa, const char *fn, int flagrequired, const char *dir)
int getconf_line(stralloc *sa, const char *fn, int flagrequired, const char *dir)
const char * logmsg(const char *dir, unsigned long num, unsigned long listno, unsigned long subs, int done)