sformat.C File Reference

#include "Util/sformat.H"
#include "Util/Assert.H"
#include "Util/log.H"
#include "rutz/compat_snprintf.h"
Include dependency graph for sformat.C:

Go to the source code of this file.

Functions

std::string vsformat (const char *fmt, va_list ap)
 snprintf() the specified format string + varargs into a std::string.
std::string sformat (const char *fmt,...)

Detailed Description

convert varargs to a std::string as if by snprintf()

Definition in file sformat.C.


Function Documentation

std::string vsformat ( const char *  fmt,
va_list  ap 
)

snprintf() the specified format string + varargs into a std::string.

NOTE: The CALLER is responsible for doing va_end(ap); it is not done internally in vsformat().

Definition at line 47 of file sformat.C.

References ASSERT.

Generated on Sun May 8 08:42:52 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3