+scanwhite(file, prefix)
+char *file, /* Name of file to scan for whitespace prefix */
+ *prefix; /* prefix of what should be picked up */
+{
+ FILE *ourfile;
+ char compare[100];
+ char what[100], value[100];
+ char line[200];
+
+ sprintf(compare, " %s%%[^,\t \n]", prefix);
+ if ((ourfile = fopen(file, "r")) == NULL) {
+ perror("fopen");
+ exit(1);
+ }
+ while (!feof(ourfile)) {
+ if (fscanf(ourfile, compare, what) == 1) {
+ add(prefix, what, 0);
+ }
+ do {
+ if (fgets(line, sizeof line, ourfile) == NULL) {
+ if (!feof(ourfile)) {
+ perror("fgets");
+ }
+ break;
+ }
+ } while (line[strlen(line)-1] != '\n');
+ }
+}
+
+void
+scandefine(file, prefix)
+char *file, /* Name of file to scan for #define prefix */