Declaration of the formatstring() function that replaces sprintf() and snprintf() by allocating the right-sized buffer and returning it. More...
Go to the source code of this file.
Macros | |
#define | __FORMATSTRING_H__ |
Functions | |
char * | formatstring (const char *format,...) |
Use the given string and arguments to return a buffer containing the formatted string. The format and arguments follow the printf() functionality. | |
Declaration of the formatstring() function that replaces sprintf() and snprintf() by allocating the right-sized buffer and returning it.
Definition in file helpers/formatstring.h.
#define __FORMATSTRING_H__ |
Definition at line 8 of file helpers/formatstring.h.
char * formatstring | ( | const char * | format, |
... | |||
) |
Use the given string and arguments to return a buffer containing the formatted string. The format and arguments follow the printf() functionality.
format | String containing formatting codes as used with the printf() function. |
Definition at line 15 of file formatstring.c.
Referenced by _Bridge_Exercise_Demonstrate_Logging(), _Decorate(), _Real_DoWork(), Composite_Exercise_FormatEntry(), Memento_ApplyReplaceOperation(), Message_ToString(), MessagePosition_ToString(), MessageWindow_ToString(), and WindowRectangle_ToString().