mirror of
https://github.com/apache/nuttx.git
synced 2026-06-08 10:32:47 +08:00
arch: Add up_nputs function to handle the non '\0' string correctly
and change up_puts as a simple macro Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Petro Karashchenko
parent
02ea79365a
commit
aad5fbd2fb
@@ -2552,7 +2552,8 @@ int up_putc(int ch);
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
void up_puts(FAR const char *str);
|
||||
#define up_puts(str) up_nputs(str, ~((size_t)0))
|
||||
void up_nputs(FAR const char *str, size_t len);
|
||||
|
||||
/****************************************************************************
|
||||
* Name: arch_sporadic_*
|
||||
|
||||
Reference in New Issue
Block a user