2 * Copyright (C) 1994, Index Data I/S
4 * Sebastian Hammer, Adam Dickmeiss
7 * Revision 1.4 1994-10-04 17:47:11 adam
8 * Function options now returns arg with error option.
10 * Revision 1.3 1994/08/18 11:02:27 adam
11 * Implementation of res_write.
13 * Revision 1.2 1994/08/18 10:02:01 adam
14 * Module alexpath moved from res.c to alexpath.c. Minor changes in res-test.c
16 * Revision 1.1 1994/08/18 09:43:51 adam
17 * Development of resource manager. Only missing is res_write.
24 static void res_print (const char *name, const char *value)
26 log (LOG_LOG, "%s=%s", name, value);
29 int main(int argc, char **argv)
39 log_init (LOG_DEFAULT_LEVEL, prog, NULL);
40 while ((ret = options ("wp:v", argv, argc, &arg)) != -2)
44 log_init (LOG_ALL, prog, NULL);
51 log (LOG_FATAL, "Unknown option '-%s'", arg);
56 log (LOG_FATAL, "No resource file given.");
59 res = res_open (resfile);
60 res_trav (res, prefix, res_print);