add new hexchar() call
This commit is contained in:
parent
88066b3a67
commit
fb624d04e5
6
util.c
6
util.c
|
@ -547,3 +547,9 @@ char *file_in_same_dir(const char *path, const char *filename) {
|
|||
|
||||
return r;
|
||||
}
|
||||
|
||||
char hexchar(int x) {
|
||||
static const char table[16] = "0123456789abcdef";
|
||||
|
||||
return table[x & 15];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue