#include "config.h"
#include <stdlib.h>
#include <stddef.h>
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
#include <limits.h>
#include "sofia-sip/su_alloc.h"
Include dependency graph for su_sprintf.c:

Functions | |
| char * | su_vsprintf (su_home_t *home, char const *fmt, va_list ap) |
| Copy a formatted string. | |
| char * | su_sprintf (su_home_t *home, char const *fmt,...) |
| Copy a formatted string. | |
| char* su_sprintf | ( | su_home_t * | home, | |
| char const * | fmt, | |||
| ... | ||||
| ) |
Copy a formatted string.
The function su_sprintf() print a string according to a fmt like printf() or snprintf(). The resulting string is copied to a memory area freshly allocated from a memory home. The returned string is reclaimed when home is destroyed. It can explicitly be freed with su_free() or free() if home is NULL.
| home | pointer to memory home (may be NULL) | |
| fmt | format string | |
| ... | argument list (must match with the fmt format string) |
| char* su_vsprintf | ( | su_home_t * | home, | |
| char const * | fmt, | |||
| va_list | ap | |||
| ) |
Copy a formatted string.
The function su_vsprintf() print a string according to a fmt like vprintf() or vsnprintf(). The resulting string is copied to a memory area fresly allocated from a memory home. The returned string is reclaimed when home is destroyed. It can explicitly be freed with su_free() or free() if home is NULL.
| home | pointer to memory home (may be NULL) | |
| fmt | format string | |
| ap | stdarg argument list (must match with the fmt format string) |