The tests directory also has many examples including:
dnstest.c - a DNS and async DNS example
hash.c - a SHA/MD5 hash example
hostinfo.c - a InetAddr help function example
pack.c - a pack example
unpack.c - an unpack example