/*
* Copyright (c) 2000-2001 Proofpoint, Inc. and its suppliers.
* All rights reserved.
*
* By using this file, you agree to the terms and conditions set
* forth in the LICENSE file which can be found at the top level of
* the sendmail distribution.
*/
#include <errno.h>
#include <stdio.h>
/*
** SM_STRINGF_X -- printf() to dynamically allocated string.
**
** Takes the same arguments as printf.
** It returns a pointer to a dynamically allocated string
** containing the text that printf would print to standard output.
** It raises an exception on error.
** The name comes from a PWB Unix function called stringf.
**
** Parameters:
** fmt -- format string.
** ... -- arguments for format.
**
** Returns:
** Pointer to a dynamically allocated string.
**
** Exceptions:
** F:sm_heap -- out of memory (via sm_vstringf_x()).
*/
char *
#if SM_VA_STD
#else /* SM_VA_STD */
const char *fmt;
#endif /* SM_VA_STD */
{
char *s;
return s;
}
/*
** SM_VSTRINGF_X -- printf() to dynamically allocated string.
**
** Parameters:
** fmt -- format string.
** ap -- arguments for format.
**
** Returns:
** Pointer to a dynamically allocated string.
**
** Exceptions:
** F:sm_heap -- out of memory
*/
char *
const char *fmt;
{
char *s;
if (s == NULL)
{
}
return s;
}