diff options
author | Jakob Kaivo <jkk@ung.org> | 2019-07-19 12:43:06 -0400 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2019-07-19 12:43:06 -0400 |
commit | 618e6c23df47b0475d426567603b92de696a40e3 (patch) | |
tree | 7c77edbb6efcc571835fe1069582ad4f19ad71d2 | |
parent | 3663f94948a01574cb83f9678491b196218a2a9b (diff) |
implement
-rw-r--r-- | hostid.c | 10 |
1 files changed, 10 insertions, 0 deletions
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 <stdio.h> +#include <unistd.h> + +int main(void) +{ + printf("%08lx\n", gethostid()); + return 0; +} |