Changeset 296890f3 in mainline for uspace/lib/c


Ignore:
Timestamp:
2018-06-21T13:01:34Z (7 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).

Location:
uspace/lib/c
Files:
2 added
2 edited

Legend:

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

    r777832e r296890f3  
    3535#include <stdarg.h>
    3636#include <stdio.h>
    37 #include <io/printf_core.h>
    3837
    3938/** Print formatted to the given buffer with limited size.
  • uspace/lib/c/include/stdio.h

    r777832e r296890f3  
    8484extern int fgetc(FILE *);
    8585extern char *fgets(char *, int, FILE *);
     86extern char *gets(char *, size_t) __attribute__((deprecated));
    8687
    8788extern int getchar(void);
     
    114115extern int vasprintf(char **, const char *, va_list);
    115116extern int asprintf(char **, const char *, ...)
    116 #endif
    117117    _HELENOS_PRINTF_ATTRIBUTE(2, 3);
     118#endif
    118119extern int vsnprintf(char *, size_t, const char *, va_list);
     120
     121extern int sprintf(char *, const char *, ...)
     122    __attribute__((deprecated)) _HELENOS_PRINTF_ATTRIBUTE(2, 3);
     123extern int vsprintf(char *, const char *, va_list) __attribute__((deprecated));
    119124
    120125/* Formatted input */
     
    159164#define _IOLBF 1
    160165#define _IOFBF 2
    161 
    162 extern char *gets(char *, size_t);
    163166
    164167#endif
Note: See TracChangeset for help on using the changeset viewer.