From 1dc1ccd4aef6165bcdb88240dc422aa67c9ef930 Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Fri, 31 Oct 2008 21:08:03 +0000 Subject: 2008-10-31 Jeff Johnston * libc/stdio/diprintf.c: Modify documentation so eclipse newlib libhover docs generate properly. * libc/stdio/dprintf.c: Ditto. * libc/stdio/fflush.c: Ditto. * libc/stdio/fopencookie.c: Ditto. * libc/stdio/fread.c: Ditto. * libc/stdio/fsetpos.c: Ditto. * libc/stdio/getc_u.c: Ditto. * libc/stdio/getchar_u.c: Ditto. * libc/stdio/putc_u.c: Ditto. * libc/stdio/putchar_u.c: Ditto. * libc/stdio/remove.c: Ditto. * libc/stdio/siprintf.c: Ditto. * libc/stdio/siscanf.c: Ditto. * libc/stdio/sprintf.c: Ditto. * libc/stdio/sscanf.c: Ditto. * libc/stdio/vfprintf.c: Ditto. * libc/stdio/vfscanf.c: Ditto. * libc/stdio/viprintf.c: Ditto. * libc/stdio/viscanf.c: Ditto. * libc/stdlib/calloc.c: Ditto. * libc/stdlib/efgcvt.c: Ditto. * libc/stdlib/envlock.c: Ditto. * libc/time/asctime.c: Ditto. * libc/time/ctime.c: Ditto. * libc/time/gmtime.c: Ditto. * libc/time/lcltime.c: Ditto. * libc/time/tzset.c: Ditto. * libc/stdlib/envlock.h: Moved to libc/include. --- newlib/libc/stdio/sprintf.c | 44 +++++++++++++++++++++++++++----------------- 1 file changed, 27 insertions(+), 17 deletions(-) (limited to 'newlib/libc/stdio/sprintf.c') diff --git a/newlib/libc/stdio/sprintf.c b/newlib/libc/stdio/sprintf.c index 48d811cf6..1d81ebdf9 100644 --- a/newlib/libc/stdio/sprintf.c +++ b/newlib/libc/stdio/sprintf.c @@ -21,42 +21,52 @@ FUNCTION INDEX fprintf +INDEX + _fprintf_r INDEX printf +INDEX + _printf_r INDEX asprintf +INDEX + _asprintf_r INDEX sprintf +INDEX + _sprintf_r INDEX snprintf +INDEX + _snprintf_r INDEX asnprintf +INDEX + _asnprintf_r ANSI_SYNOPSIS #include - int printf(const char *<[format]> [, <[arg]>, ...]); - int fprintf(FILE *<[fd]>, const char *<[format]> [, <[arg]>, ...]); - int sprintf(char *<[str]>, const char *<[format]> [, <[arg]>, ...]); - int snprintf(char *<[str]>, size_t <[size]>, const char *<[format]> - [, <[arg]>, ...]); - int asprintf(char **<[strp]>, const char *<[format]> [, <[arg]>, ...]); - char *asnprintf(char *<[str]>, size_t *<[size]>, const char *<[format]> - [, <[arg]>, ...]); - - int _printf_r(struct _reent *<[ptr]>, const char *<[format]> - [, <[arg]>, ...]); + int printf(const char *<[format]>, ...); + int fprintf(FILE *<[fd]>, const char *<[format]>, ...); + int sprintf(char *<[str]>, const char *<[format]>, ...); + int snprintf(char *<[str]>, size_t <[size]>, const char *<[format]>, + ...); + int asprintf(char **<[strp]>, const char *<[format]>, ...); + char *asnprintf(char *<[str]>, size_t *<[size]>, const char *<[format]>, + ...); + + int _printf_r(struct _reent *<[ptr]>, const char *<[format]>, ...); int _fprintf_r(struct _reent *<[ptr]>, FILE *<[fd]>, - const char *<[format]> [, <[arg]>, ...]); + const char *<[format]>, ...); int _sprintf_r(struct _reent *<[ptr]>, char *<[str]>, - const char *<[format]> [, <[arg]>, ...]); + const char *<[format]>, ...); int _snprintf_r(struct _reent *<[ptr]>, char *<[str]>, size_t <[size]>, - const char *<[format]> [, <[arg]>, ...]); + const char *<[format]>, ...); int _asprintf_r(struct _reent *<[ptr]>, char **<[strp]>, - const char *<[format]> [, <[arg]>, ...]); + const char *<[format]>, ...); char *_asnprintf_r(struct _reent *<[ptr]>, char *<[str]>, - size_t *<[size]>, const char *<[format]> - [, <[arg]>, ...]); + size_t *<[size]>, const char *<[format]>, ...); DESCRIPTION <> accepts a series of arguments, applies to each a -- cgit v1.2.3