Subversion Repositories HelenOS-historic

Rev

Rev 1617 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1617 Rev 1623
Line 81... Line 81...
81
    data->string[data->len] = 0;
81
    data->string[data->len] = 0;
82
 
82
 
83
    return count;  
83
    return count;  
84
}
84
}
85
 
85
 
-
 
86
/** Print formatted to the given buffer with limited size.
-
 
87
 * @param str   buffer
-
 
88
 * @param size  buffer size
-
 
89
 * @param fmt   format string
-
 
90
 * \see For more details about format string see printf_core.
-
 
91
 */
86
int vsnprintf(char *str, size_t size, const char *fmt, va_list ap)
92
int vsnprintf(char *str, size_t size, const char *fmt, va_list ap)
87
{
93
{
88
    struct vsnprintf_data data = {size, 0, str};
94
    struct vsnprintf_data data = {size, 0, str};
89
    struct printf_spec ps = {(int(*)(void *, size_t, void *))vsnprintf_write, &data};
95
    struct printf_spec ps = {(int(*)(void *, size_t, void *))vsnprintf_write, &data};
90
 
96