Skip to content
This repository has been archived by the owner on Jul 24, 2022. It is now read-only.

Commit

Permalink
Fixed the comment about the return value for snprintf and vsnprintf (…
Browse files Browse the repository at this point in the history
…issue mpaland#45)
  • Loading branch information
vgrudenic authored and mpaland committed Apr 5, 2019
1 parent f30c9ac commit 21eea6c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions printf.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,9 @@ int sprintf_(char* buffer, const char* format, ...);
* \param count The maximum number of characters to store in the buffer, including a terminating null character
* \param format A string that specifies the format of the output
* \param va A value identifying a variable arguments list
* \return The number of characters that are WRITTEN into the buffer, not counting the terminating null character
* If the formatted string is truncated the buffer size (count) is returned
* \return The number of characters that COULD have been written into the buffer, not counting the terminating
* null character. A value equal or larger than count indicates truncation. Only when the returned value
* is non-negative and less than count, the string has been completely written.
*/
#define snprintf snprintf_
#define vsnprintf vsnprintf_
Expand Down

0 comments on commit 21eea6c

Please sign in to comment.