From ba86864699997b0da780e15fd6be33c8a556e927 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sun, 17 Jan 2016 17:16:03 -0600 Subject: Extend utf8 fontmetrics so ps can use them. Also, I forgot to check in uuid_show() last time. --- lib/lib.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'lib/lib.c') diff --git a/lib/lib.c b/lib/lib.c index 871eda7e..955960ca 100644 --- a/lib/lib.c +++ b/lib/lib.c @@ -988,3 +988,14 @@ void create_uuid(char *uuid) // should never collide with anybody actually using a macaddr. uuid[11] |= 128; } + +char *show_uuid(char *uuid) +{ + char *out = libbuf; + int i; + + for (i=0; i<16; i++) out+=sprintf(out, "-%02x"+!(0x550&(1<