2 * Copyright (C) 1994-1999, Index Data
4 * Sebastian Hammer, Adam Dickmeiss
7 * Revision 1.7 1999-02-02 14:51:41 adam
8 * Updated WIN32 code specific sections. Changed header.
10 * Revision 1.6 1996/10/29 13:48:16 adam
11 * Updated to use zebrautl.h instead of alexutil.h.
13 * Revision 1.5 1995/09/04 12:34:05 adam
14 * Various cleanup. YAZ util used instead.
16 * Revision 1.4 1994/10/04 17:47:11 adam
17 * Function options now returns arg with error option.
19 * Revision 1.3 1994/08/18 11:02:27 adam
20 * Implementation of res_write.
22 * Revision 1.2 1994/08/18 10:02:01 adam
23 * Module alexpath moved from res.c to alexpath.c. Minor changes in res-test.c
25 * Revision 1.1 1994/08/18 09:43:51 adam
26 * Development of resource manager. Only missing is res_write.
34 static void res_print (const char *name, const char *value)
36 logf (LOG_LOG, "%s=%s", name, value);
39 int main(int argc, char **argv)
49 log_init (LOG_DEFAULT_LEVEL, prog, NULL);
50 while ((ret = options ("wp:v", argv, argc, &arg)) != -2)
54 log_init (LOG_ALL, prog, NULL);
61 logf (LOG_FATAL, "Unknown option '-%s'", arg);
66 logf (LOG_FATAL, "No resource file given.");
69 res = res_open (resfile);
70 res_trav (res, prefix, res_print);