From 618e6c23df47b0475d426567603b92de696a40e3 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Fri, 19 Jul 2019 12:43:06 -0400 Subject: implement --- hostid.c | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 hostid.c (limited to 'hostid.c') diff --git a/hostid.c b/hostid.c new file mode 100644 index 0000000..854bb93 --- /dev/null +++ b/hostid.c @@ -0,0 +1,10 @@ +#define _XOPEN_SOURCE +#define _XOPEN_SOURCE_EXTENDED 1 +#include +#include + +int main(void) +{ + printf("%08lx\n", gethostid()); + return 0; +} -- cgit v1.2.1