Implementation 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.
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. | |
Implementation of the formatstring() function that replaces sprintf() and snprintf() by allocating the right-sized buffer and returning it.
Definition in file formatstring.c.
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().