4898794edd81be5285ea6e544acbedeaeb31bf78
max
  Tue Nov 23 08:10:57 2021 -0800
Fixing pointers to README file for license in all source code files. refs #27614

diff --git src/hg/zoo/zooLib/args.c src/hg/zoo/zooLib/args.c
index 09fd5c7..b7dcadc 100644
--- src/hg/zoo/zooLib/args.c
+++ src/hg/zoo/zooLib/args.c
@@ -1,111 +1,111 @@
 /* Copyright (C) 2011 The Regents of the University of California 
- * See README in this or parent directory for licensing information. */
+ * See kent/LICENSE or http://genome.ucsc.edu/license/ for licensing information. */
 
 #include "util.h"
 #include "args.h"
 
 static int argc;
 static char **argv;
 char *argv0;
 
 /* ckargs  --  check that only certain parameters are set on the command line */
 void ckargs(const char *options, int argcx, char **argvx, int non_options)
 {
 	int i;
 
 	argc = argcx;
 	argv = argvx;
 	argv0 = argv0 ? argv0 : argv[0];
 	for (i = non_options+1; i < argc; ++i)
 		if (argv[i][1] != '=')
 			fatalf("Improper command option: '%s'.", argv[i]);
 		else if (!strchr(options, argv[i][0]))
 			fatalf("Available options: %s\n", options);
 }
 
 /* get_argval  --------------------- get the value of a command-line argument */
 bool get_argval(int c, int *val_ptr)
 {
 	int i;
 
 	ck_argc("get_argval");
 	for (i = 0; i < argc; ++i)
 		if (argv[i][0] == c && argv[i][1] == '=') {
 			*val_ptr = atoi(argv[i]+2);
 			return 1;
 		}
 	return 0;
 }
 
 /* get_fargval  -------------- get the float value of a command-line argument */
 bool get_fargval(int c, double *val_ptr)
 {
         int i;
 
         ck_argc("get_fargval");
         for (i = 0; i < argc; ++i)
                 if (argv[i][0] == c && argv[i][1] == '=') {
                         *val_ptr = atof(argv[i]+2);
                         return 1;
                 }
         return 0;
 }
 
 bool get_cargval(int c, char **valp)
 {
         int i;
 
         ck_argc("get_cargval");
         for (i = 0; i < argc; ++i)
                 if (argv[i][0] == c && argv[i][1] == '=') {
                         *valp = argv[i]+2;
                         return 1;
                 }
         return 0;
 }
 
 /* ck_argc - die if argc is unknown */
 void ck_argc(const char *proc_name)
 {
 	if (argc == 0)
 		fatalf("Call ckargs() before %s.\n", proc_name);
 }
 
 void fprintf_argv(FILE* fp)
 {
 	int i;
 	fprintf(fp, "%s", argv0);
 	for (i = 1; i < argc; ++i)
 		(void)fprintf(fp, " %s", argv[i]);
 }
 
 
 void get_argval_min(int c, int *v, int d, int min, const char *msg)
 {
 	if (get_argval(c, v)) {
 		if (*v < min)
 			fatalf(msg, c);
 	} else {
 		*v = d;
 	}
 }	
 
 void get_argval_max(int c, int *v, int d, int max, const char *msg)
 {
 	if (get_argval(c, v)) {
 		if (*v > max)
 			fatalf(msg, c);
 	} else {
 		*v = d;
 	}
 }
 
 void get_argval_nonneg(int ch, int *val, int dflt)
 {
 	get_argval_min(ch, val, dflt, 0, "%c must be non-negative.");
 }
 
 void get_argval_pos(int ch, int *val, int dflt)
 {
 	get_argval_min(ch, val, dflt, 1, "%c must be positive.");
 }