mirror of
https://github.com/apache/nuttx.git
synced 2026-10-10 15:50:23 +00: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:
parent
02ea79365a
commit
aad5fbd2fb
42 changed files with 247 additions and 266 deletions
|
|
@ -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_*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue