e70152e44cc66cc599ff6b699eb8adc07f3e656a kent Sat May 24 21:09:34 2014 -0700 Adding Copyright NNNN Regents of the University of California to all files I believe with reasonable certainty were developed under UCSC employ or as part of Genome Browser copyright assignment. diff --git src/lib/hex.c src/lib/hex.c index c339656..e5f8aa7 100644 --- src/lib/hex.c +++ src/lib/hex.c @@ -1,19 +1,22 @@ /* Handy hexidecimal functions * If you don't want to use printf */ +/* Copyright (C) 2013 The Regents of the University of California + * See README in this or parent directory for licensing information. */ + #include "common.h" char hexTab[16] = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f', }; /* Convert 0-15 to a hex char */ char nibbleToHex(unsigned char n) /* convert nibble to hexidecimal character. 0 <= n <= 15. */ { return hexTab[n]; } void byteToHex(unsigned char n, char *hex) /* convert byte to hexidecimal characters. 0 <= n <= 255. */