Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/io/asprintf.c

    rce52ae70 r9d58539  
    5050}
    5151
    52 int vprintf_size(const char *fmt, va_list args)
    53 {
    54         printf_spec_t ps = {
    55                 asprintf_str_write,
    56                 asprintf_wstr_write,
    57                 NULL
    58         };
    59        
    60         return printf_core(fmt, &ps, args);
    61 }
    62 
    63 int printf_size(const char *fmt, ...)
    64 {
    65         va_list args;
    66         va_start(args, fmt);
    67         int ret = vprintf_size(fmt, args);
    68         va_end(args);
    69        
    70         return ret;
    71 }
    72 
    7352/** Allocate and print to string.
    7453 *
     
    8261int asprintf(char **strp, const char *fmt, ...)
    8362{
     63        printf_spec_t ps = {
     64                asprintf_str_write,
     65                asprintf_wstr_write,
     66                NULL
     67        };
     68       
    8469        va_list args;
    8570        va_start(args, fmt);
    86         int ret = vprintf_size(fmt, args);
     71       
     72        int ret = printf_core(fmt, &ps, args);
    8773        va_end(args);
    8874       
Note: See TracChangeset for help on using the changeset viewer.