[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: resolver newbie
On Fri, 5 Jan 2001, Tom Knienieder wrote:
fscking typo ...
> On Fri, 5 Jan 2001, Tony Sarendal wrote:
>
> >
> > Hi people.
> >
> > Whats wrong with this picture ?
> >
> > <sarre@lyx101>$ cat testResolv.c
> > #include <sys/types.h>
> > #include <netinet/in.h>
> > #include <arpa/nameser.h>
> > #include <resolv.h>
> >
> > int main()
> > {
> > int result;
> > char domain[] = "openbsd.org";
> > unsigned char answer[8192];
> >
> > res_init();
> > _res.options |= RES_DEBUG;
> > _res.retry = 2;
> >
> > result = res_query(domain, C_IN, T_MX, answer, sizeof(answer));
> > printf("res_query returned %d\n");
>
> ^ ----- missing argument
>
> printf("res_query returned %s\n", result );
^ -------------- %d of course !
>
> >
> > exit(0);
> > }
>
> Tom
>
>