stdio.h: Sprinkle printflike attribute
This commit is contained in:
parent
eb406a8394
commit
7e702817c1
|
@ -141,7 +141,8 @@ int fgetc(FAR FILE *stream);
|
||||||
int fgetpos(FAR FILE *stream, FAR fpos_t *pos);
|
int fgetpos(FAR FILE *stream, FAR fpos_t *pos);
|
||||||
FAR char *fgets(FAR char *s, int n, FAR FILE *stream);
|
FAR char *fgets(FAR char *s, int n, FAR FILE *stream);
|
||||||
FAR FILE *fopen(FAR const char *path, FAR const char *type);
|
FAR FILE *fopen(FAR const char *path, FAR const char *type);
|
||||||
int fprintf(FAR FILE *stream, FAR const IPTR char *format, ...);
|
int fprintf(FAR FILE *stream, FAR const IPTR char *format, ...)
|
||||||
|
printflike(2, 3);
|
||||||
int fputc(int c, FAR FILE *stream);
|
int fputc(int c, FAR FILE *stream);
|
||||||
int fputs(FAR const IPTR char *s, FAR FILE *stream);
|
int fputs(FAR const IPTR char *s, FAR FILE *stream);
|
||||||
size_t fread(FAR void *ptr, size_t size, size_t n_items, FAR FILE *stream);
|
size_t fread(FAR void *ptr, size_t size, size_t n_items, FAR FILE *stream);
|
||||||
|
@ -174,27 +175,31 @@ int ungetc(int c, FAR FILE *stream);
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void perror(FAR const char *s);
|
void perror(FAR const char *s);
|
||||||
int printf(FAR const IPTR char *fmt, ...);
|
int printf(FAR const IPTR char *fmt, ...) printflike(1, 2);
|
||||||
int putc(int c, FAR FILE *stream);
|
int putc(int c, FAR FILE *stream);
|
||||||
int putchar(int c);
|
int putchar(int c);
|
||||||
int puts(FAR const IPTR char *s);
|
int puts(FAR const IPTR char *s);
|
||||||
int rename(FAR const char *oldpath, FAR const char *newpath);
|
int rename(FAR const char *oldpath, FAR const char *newpath);
|
||||||
int sprintf(FAR char *buf, FAR const IPTR char *fmt, ...);
|
int sprintf(FAR char *buf, FAR const IPTR char *fmt, ...)
|
||||||
int asprintf(FAR char **ptr, FAR const IPTR char *fmt, ...);
|
printflike(2, 3);
|
||||||
|
int asprintf(FAR char **ptr, FAR const IPTR char *fmt, ...)
|
||||||
|
printflike(2, 3);
|
||||||
int snprintf(FAR char *buf, size_t size,
|
int snprintf(FAR char *buf, size_t size,
|
||||||
FAR const IPTR char *fmt, ...);
|
FAR const IPTR char *fmt, ...) printflike(3, 4);
|
||||||
int sscanf(FAR const char *buf, FAR const IPTR char *fmt, ...);
|
int sscanf(FAR const char *buf, FAR const IPTR char *fmt, ...);
|
||||||
|
|
||||||
int scanf(FAR const IPTR char *fmt, ...);
|
int scanf(FAR const IPTR char *fmt, ...);
|
||||||
int vasprintf(FAR char **ptr, FAR const IPTR char *fmt, va_list ap);
|
int vasprintf(FAR char **ptr, FAR const IPTR char *fmt, va_list ap)
|
||||||
|
printflike(2, 0);
|
||||||
int vfprintf(FAR FILE *stream, FAR const IPTR char *fmt,
|
int vfprintf(FAR FILE *stream, FAR const IPTR char *fmt,
|
||||||
va_list ap);
|
va_list ap) printflike(2, 0);
|
||||||
int vfscanf(FAR FILE *stream, FAR const IPTR char *fmt, va_list ap);
|
int vfscanf(FAR FILE *stream, FAR const IPTR char *fmt, va_list ap);
|
||||||
int vprintf(FAR const IPTR char *fmt, va_list ap);
|
int vprintf(FAR const IPTR char *fmt, va_list ap) printflike(1, 0);
|
||||||
int vscanf(FAR const IPTR char *fmt, va_list ap);
|
int vscanf(FAR const IPTR char *fmt, va_list ap);
|
||||||
int vsnprintf(FAR char *buf, size_t size, FAR const IPTR char *fmt,
|
int vsnprintf(FAR char *buf, size_t size, FAR const IPTR char *fmt,
|
||||||
va_list ap);
|
va_list ap) printflike(3, 0);
|
||||||
int vsprintf(FAR char *buf, FAR const IPTR char *fmt, va_list ap);
|
int vsprintf(FAR char *buf, FAR const IPTR char *fmt, va_list ap)
|
||||||
|
printflike(2, 0);
|
||||||
int vsscanf(FAR const char *buf, FAR const IPTR char *fmt, va_list ap);
|
int vsscanf(FAR const char *buf, FAR const IPTR char *fmt, va_list ap);
|
||||||
|
|
||||||
/* Operations on file descriptors including:
|
/* Operations on file descriptors including:
|
||||||
|
@ -205,8 +210,9 @@ int vsscanf(FAR const char *buf, FAR const IPTR char *fmt, va_list ap);
|
||||||
*/
|
*/
|
||||||
|
|
||||||
FAR FILE *fdopen(int fd, FAR const char *type);
|
FAR FILE *fdopen(int fd, FAR const char *type);
|
||||||
int dprintf(int fd, FAR const IPTR char *fmt, ...);
|
int dprintf(int fd, FAR const IPTR char *fmt, ...) printflike(2, 3);
|
||||||
int vdprintf(int fd, FAR const IPTR char *fmt, va_list ap);
|
int vdprintf(int fd, FAR const IPTR char *fmt, va_list ap)
|
||||||
|
printflike(2, 0);
|
||||||
|
|
||||||
/* Operations on paths */
|
/* Operations on paths */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue