Restore lib_sprintf(). It was removed because I thought was not used. But I was wrong; there is logic in drivers/syslog that depends on lib_sprintf().

This commits reverts a part of commit c271151d57.  That commit also removed lib_sscanf() which really is not needed.
This commit is contained in:
Gregory Nutt
2019-02-16 12:29:00 -06:00
parent 3131195d7a
commit 653ff2c34e
3 changed files with 77 additions and 3 deletions
+11
View File
@@ -442,6 +442,17 @@ int lib_noflush(FAR struct lib_outstream_s *stream);
int lib_snoflush(FAR struct lib_sostream_s *this);
/****************************************************************************
* Name: lib_sprintf
*
* Description:
* Stream-oriented implementation of sprintf. Used only by the SYSLOG.
*
****************************************************************************/
int lib_sprintf(FAR struct lib_outstream_s *obj,
FAR const IPTR char *fmt, ...);
/****************************************************************************
* Name: lib_vsprintf
*