|
|
1.1 root 1: #ifndef lint
2: static char sccsid[] = "@(#)hostid.c 4.2 (Berkeley) 8/11/83";
3: #endif
4:
5: main(argc, argv)
6: int argc;
7: char **argv;
8: {
9:
10: if (argc > 1) {
11: int hostid;
12: sscanf(argv[1], "%x", &hostid);
13: if (sethostid(hostid) < 0)
14: perror("hostid");
15: } else
16: printf("%x\n", gethostid());
17: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.