mirror of
https://github.com/apache/nuttx.git
synced 2026-09-21 13:25:12 +08:00
lib_libvsprintf.c: Implement "t" modifier for printf
Introduced by C99 for ptrdiff_t.
This commit is contained in:
committed by
Xiang Xiao
parent
e29a0d9dc6
commit
f307d999e6
@@ -375,7 +375,9 @@ static int vsprintf_internal(FAR struct lib_outstream_s *stream,
|
||||
}
|
||||
}
|
||||
|
||||
if (c == 'z')
|
||||
/* Note: On Nuttx, ptrdiff_t == intptr_t == ssize_t. */
|
||||
|
||||
if (c == 'z' || c == 't')
|
||||
{
|
||||
switch (sizeof(size_t))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user