k9core

Coreutils for *nix operating systems [fork]
git clone git://bvnf.space/k9core.git
Log | Files | Refs | LICENSE

hostid.c (117B)


      1
      2
      3
      4
      5
      6
      7
      8
      9
     10
     11
#include <stdio.h>
#include <unistd.h>

int
main(void)
{
	long id = gethostid();
	printf("%lx\n", id);

	return 0;
}