projects
/
unix-history
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
date and time created 82/08/25 21:54:04 by sam
[unix-history]
/
usr
/
src
/
lib
/
libc
/
net
/
getnetbyaddr.c
/* getnetbyaddr.c 4.1 82/08/25 */
#include <netdb.h>
struct
netent
*
getnetaddr
(
net
)
register
int
net
;
{
register
struct
netent
*
p
;
setnetent
(
0
);
while
(
p
=
getnetent
())
if
(
p
->
n_net
==
net
)
break
;
endnetent
();
return
(
p
);
}