src/arch/snprintf.c
/*
 * Implemented using vsprintf(), and ignoring the size restriction.
 */
Implemented using vsprintf(), and ignoring the size restriction.
Implemented using vsprintf () and ignoring the size restriction .
int
snprintf(char *str, size_t size, const char *format, ...)
{
  int retval;
  va_list ap;
  va_start(ap, format);
#if defined(HAVE__VSNPRINTF)
  retval = _vsnprintf(str, size, format, ap);
#else
  retval = vsprintf(str, format, ap);
#endif
  va_end(ap);
  return retval;
}
int snprintf ( char * str , size_t size , const char * format , ... ) { int retval ; va_list ap ; va_start ( ap , format ) ; #if defined ( HAVE__VSNPRINTF ) retval = _vsnprintf ( str , size , format , ap ) ; #else retval = vsprintf ( str , format , ap ) ; #endif va_end ( ap ) ; return retval ; }
Implemented using vsprintf(), and ignoring the size restriction.
Implemented using vsprintf () and ignoring the size restriction .