Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

sformat.H File Reference


Detailed Description

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

Definition in file sformat.H.

#include <stdarg.h>
#include <string>

Include dependency graph for sformat.H:

This graph shows which files directly or indirectly include this file:

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,...) __attribute__((format(__printf__
 snprintf() the specified format string + varargs into a std::string.


Function Documentation

std::string sformat const char *  fmt,
  ...
 

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

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, buf, LFATAL, and vsnprintf().

Referenced by sformat().


Generated on Mon Nov 23 15:49:39 2009 for iLab Neuromorphic Vision Toolkit by  doxygen 1.4.4