Skip to content

Commit

Permalink
include/nuttx/streams.h: Add printflike
Browse files Browse the repository at this point in the history
  • Loading branch information
yamt committed Nov 16, 2020
1 parent 3a0aac2 commit cc89cb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/nuttx/streams.h
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ int lib_snoflush(FAR struct lib_sostream_s *this);
****************************************************************************/

int lib_sprintf(FAR struct lib_outstream_s *obj,
FAR const IPTR char *fmt, ...);
FAR const IPTR char *fmt, ...) printflike(2, 3);

/****************************************************************************
* Name: lib_vsprintf
Expand All @@ -464,7 +464,7 @@ int lib_sprintf(FAR struct lib_outstream_s *obj,
****************************************************************************/

int lib_vsprintf(FAR struct lib_outstream_s *obj,
FAR const IPTR char *src, va_list ap);
FAR const IPTR char *src, va_list ap) printflike(2, 0);

/****************************************************************************
* Name: lib_vscanf
Expand Down

0 comments on commit cc89cb7

Please sign in to comment.