Changeset 296890f3 in mainline for uspace/lib/posix/src/stdio.c


Ignore:
Timestamp:
2018-06-21T13:01:34Z (6 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a8b0c5d
Parents:
777832e
git-author:
Jiri Svoboda <jiri@…> (2018-06-21 20:00:45)
git-committer:
Jiri Svoboda <jiri@…> (2018-06-21 13:01:34)
Message:

sprintf, vsprintf belong in libc (as deprecated).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/posix/src/stdio.c

    r777832e r296890f3  
    278278
    279279/**
    280  * Print formatted output to the string.
    281  *
    282  * @param s Output string.
    283  * @param format Format description.
    284  * @return Either the number of printed characters (excluding null byte) or
    285  *     negative value on error.
    286  */
    287 int sprintf(char *s, const char *restrict format, ...)
    288 {
    289         va_list list;
    290         va_start(list, format);
    291         int result = vsprintf(s, format, list);
    292         va_end(list);
    293         return result;
    294 }
    295 
    296 /**
    297  * Print formatted output to the string.
    298  *
    299  * @param s Output string.
    300  * @param format Format description.
    301  * @param ap Print arguments.
    302  * @return Either the number of printed characters (excluding null byte) or
    303  *     negative value on error.
    304  */
    305 int vsprintf(char *s, const char *restrict format, va_list ap)
    306 {
    307         return vsnprintf(s, INT_MAX, format, ap);
    308 }
    309 
    310 /**
    311280 * Acquire file stream for the thread.
    312281 *
Note: See TracChangeset for help on using the changeset viewer.