projects
/
unix-history
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
add -M to cpp to generate Makefile dependencies
[unix-history]
/
usr
/
src
/
old
/
hostid
/
hostid.c
#ifndef lint
static char
sccsid
[] =
"@(#)hostid.c 4.2 (Berkeley) %G%"
;
#endif
main
(
argc
,
argv
)
int
argc
;
char
**
argv
;
{
if
(
argc
>
1
) {
int
hostid
;
sscanf
(
argv
[
1
],
"%x"
, &
hostid
);
if
(
sethostid
(
hostid
) <
0
)
perror
(
"hostid"
);
}
else
printf
(
"%x
\n
"
,
gethostid
());
}