exported ns_avprintf()