/* gservbyn.c (emx+gcc) -- Copyright (c) 1994-1996 by Eberhard Mattes */

#include <stdlib.h>
#include <emx/syscalls.h>

struct servent *getservbyname (const char *name, const char *proto)
{
  struct servent *result;

  if (__getservbyname (name, proto, &result) != 0)
    result = NULL;
  return result;
}
