Exemple #1
0
int ostream::vformat(const char* fmt, va_list ap)
{
	int   ret = acl_vstream_vfprintf(stream_, fmt, ap);
	if (ret == ACL_VSTREAM_EOF)
		eof_ = true;
	return ret;
}
void CMsnContactManager::logger_format(const char* fmt, ...)
{
	if (debug_fpout_ == NULL)
		return;

	va_list ap;
	va_start(ap, fmt);
	acl_vstream_vfprintf(debug_fpout_, fmt, ap);
	va_end(ap);
}
Exemple #3
0
int smtp_printf(SMTP_CLIENT *client, const char* fmt, ...)
{
	va_list ap;
	int   ret;

	va_start(ap, fmt);
	ret = acl_vstream_vfprintf(client->conn, fmt, ap);
	va_end(ap);

	return ret == ACL_VSTREAM_EOF ? -1 : 0;
}