stupid lwres question

Michael Richardson mcr at sandelman.ottawa.on.ca
Fri Oct 18 03:52:00 UTC 2002


-----BEGIN PGP SIGNED MESSAGE-----


>>>>> "Mark" == Mark Andrews <Mark.Andrews at isc.org> writes:
    >> isc_mem_create(0, 0, &mymem);
    >> 
    >> isc_buffer_allocate(mymem, &mybuf, 1024); /* but is there a better number? */
    >> 
    >> dns_rdata_totext(&rd, NULL, mybuf);

    Mark> 	printf("%*.s\n", isc_buffer_usedlength(mybuf),
    Mark> 	       isc_buffer_base(mybuf));

  That actually doesn't work with my (glibc) printf.
  I had to use:

		fprintf(gs->cmdproto_out, 
			"%s SIG %.*s\n",
			id,
			(int)isc_buffer_usedlength(iscbuf),
			(char *)isc_buffer_base(iscbuf));

  Thank you, this is most useful.

]       ON HUMILITY: to err is human. To moo, bovine.           |  firewalls  [
]   Michael Richardson, Sandelman Software Works, Ottawa, ON    |net architect[
] mcr at sandelman.ottawa.on.ca http://www.sandelman.ottawa.on.ca/ |device driver[
] panic("Just another Debian GNU/Linux using, kernel hacking, security guy"); [
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
Comment: Finger me for keys

iQCVAwUBPa+E+YqHRg3pndX9AQHw6gP9HEQSS7zfLNQ8q+AO7Z1trnqW+1ZiFuE9
Eggx/kLrBQv2iR12fsVWJNjukAtaefmRWClaANZffjyKgTW5G0GuzFGt9La6F9Y4
VOM6sRI4Amb/lbB5iMIRj8C6XRx/V2nuloTFV0bEHc/2O0ySnq+OfBcV0yxXZnn4
r3X5sNMOlDE=
=HWFi
-----END PGP SIGNATURE-----


More information about the bind-workers mailing list