static int parsehex()

in src/testhash.c [41:46]


static int parsehex(char c) {
  if ('0' <= c && c <= '9') return c - '0';
  if ('a' <= c && c <= 'f') return 10 + (c - 'a');
  printf("illegal char %c\n", c);
  exit(1);
}