21 int main(
int argc,
char* argv[])
25 char fname[FILENAME_MAX + 1];
32 snprintf(fname, FILENAME_MAX,
"%s/%s",
sysconfigdir,
"fossology.conf");
36 fprintf(stderr,
"FATAL %s.%d: unable to open system configuration: %s\n",
37 __FILE__, __LINE__, error->message);
43 fprintf(stderr,
"FATAL %s.%d: Build error, unspecified system configuration location.\n",
50 fprintf(stderr,
"Usage: %s type filename [type filename [...]]\n", argv[0]);
54 for (i = 1; i < argc; i += 2)
64 fprintf(stderr,
"ERROR: type='%s' filename='%s' invalid.\n",
65 argv[i], argv[i + 1]);
fo_conf * fo_config_load(char *rawname, GError **error)
Load the configuration information from the provided file.
The main FOSSology C library.
char * fo_RepMkPath(const char *Type, char *Filename)
Given a filename, construct the full path to the file.