aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/stdio/sprintf.c
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2008-10-31 21:08:03 +0000
committerJeff Johnston <jjohnstn@redhat.com>2008-10-31 21:08:03 +0000
commit1dc1ccd4aef6165bcdb88240dc422aa67c9ef930 (patch)
tree0018d02d62e8aeba2b87d77d346ea8cc15aa6ab5 /newlib/libc/stdio/sprintf.c
parentd456d606e35a460db59c6609f8c994e658fe3d7c (diff)
downloadnewlib-1dc1ccd4aef6165bcdb88240dc422aa67c9ef930.zip
newlib-1dc1ccd4aef6165bcdb88240dc422aa67c9ef930.tar.gz
newlib-1dc1ccd4aef6165bcdb88240dc422aa67c9ef930.tar.bz2
2008-10-31 Jeff Johnston <jjohnstn@redhat.com>
* 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.
Diffstat (limited to 'newlib/libc/stdio/sprintf.c')
-rw-r--r--newlib/libc/stdio/sprintf.c44
1 files changed, 27 insertions, 17 deletions
diff --git a/newlib/libc/stdio/sprintf.c b/newlib/libc/stdio/sprintf.c
index 48d811c..1d81ebd 100644
--- a/newlib/libc/stdio/sprintf.c
+++ b/newlib/libc/stdio/sprintf.c
@@ -22,41 +22,51 @@ 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 <stdio.h>
- 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
<<printf>> accepts a series of arguments, applies to each a