Design Pattern Examples
Overview of object-oriented design patterns
lusplus/helpers/formatstring.h File Reference

Declaration of the formatstring() function that replaces sprintf() and snprintf() by allocating the right-sized buffer and returning it. More...

#include <string>
Include dependency graph for lusplus/helpers/formatstring.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Helpers
 The namespace containing all the "helper" functions in the C++ code.
 

Macros

#define __FORMATSTRING_H__
 

Functions

std::string formatstring (const char *fmt,...)
 Use the given string and arguments to return a buffer containing the formatted string. The format and arguments follow the printf() functionality.
 

Detailed Description

Declaration of the formatstring() function that replaces sprintf() and snprintf() by allocating the right-sized buffer and returning it.

Definition in file lusplus/helpers/formatstring.h.

Macro Definition Documentation

◆ __FORMATSTRING_H__

#define __FORMATSTRING_H__

Definition at line 9 of file lusplus/helpers/formatstring.h.