mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-09-28 00:50:11 +00:00
add new hexchar() call
This commit is contained in:
@@ -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];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user