blob: 838f034a51258a1855f155ad745e9a445ccd77f7 [file] [log] [blame] [raw]
#include "ipf.h"
int getport(name)
char *name;
{
struct servent *s;
s = getservbyname(name, NULL);
if (s != NULL)
return s->s_port;
return 0;
}