diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-01-28 06:45:04 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-01-28 06:45:04 +0100 |
commit | fb624d04e56018defe297eff1d88888b192caeaa (patch) | |
tree | 5e27860fac6275204b3d2d601a5fd8e4c71f20f7 /util.c | |
parent | 88066b3a67b78329a02ffca3ac76ba1230de6b12 (diff) |
add new hexchar() call
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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]; +} |