nuttx/include
Jiuzhu Dong 7561882938 lib_vsprintf: Add %pV format support
test case:
void test(const char *fmt, ...)
{
  struct va_format vaf;
  va_list ap;

  va_start(ap, fmt);
  vaf.fmt = fmt;
  vaf.va = ≈
  printf("func:%s, %pV, line:%d\n", __func__, &vaf, __LINE__);
  va_end(ap);
}

int main(int argc, FAR char *argv[])
{
  char str[] = "Hello Boy and Girl!";
  int count = 10;

  test("%s %d", str, count);
  return 0;
}

>> test
func:test, Hello Boy and Girl! 10, line:49

Change-Id: I6d97515dce3f10a880145a1ff7fcba5e9cbebd37
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-08-27 11:08:48 +08:00
..
arpa netinet: move the byte ordering convert functions to "netinet/in.h" 2021-06-09 12:04:25 -05:00
cxx libc/pty: Make ptsname[_r] support PSEUDOTERM_BSD config too 2021-05-08 20:49:11 +08:00
net net: Add if_nameindex and if_freenameindex API 2021-06-26 19:45:21 -07:00
netinet netinet: move the byte ordering convert functions to "netinet/in.h" 2021-06-09 12:04:25 -05:00
netpacket Add include header file <sys/types.h> to rpmsg.h. 2021-07-06 05:23:46 -05:00
nuttx nuttx/up_backtrace: add up_backtrace interface 2021-08-23 12:08:43 +08:00
sys fs: support exfat filesystem 2021-08-20 22:14:46 +08:00
.gitignore build: Remve the unnecessary .gitignore 2020-05-23 18:00:40 +01:00
aio.h fs: Change off_t and related types to int64_t if long long is supported 2021-08-04 14:06:26 +08:00
alloca.h include: Author: Gregory Nutt: update licenses to Apache 2.0 2021-02-04 03:33:58 -08:00
assert.h libc/assert: Reference the expression in all case 2021-04-06 14:47:51 +08:00
byteswap.h byteswap.h: add byteswap.h header file 2021-08-11 16:49:39 +08:00
crc8.h Increase the function of crc8 to use custom polynomials 2021-07-06 09:20:56 +08:00
crc16.h include: Author: Gregory Nutt: update licenses to Apache 2.0 2021-02-04 03:33:58 -08:00
crc32.h include: Author: Gregory Nutt: update licenses to Apache 2.0 2021-02-04 03:33:58 -08:00
crc64.h include: nuttx: fix nxstyle errors 2021-02-04 03:33:58 -08:00
ctype.h libc: Implement local_t related functions 2021-08-02 09:48:47 +08:00
debug.h debug: allow customize EXTRA_FMT 2021-08-24 12:26:19 +08:00
dirent.h fs: Change off_t and related types to int64_t if long long is supported 2021-08-04 14:06:26 +08:00
dlfcn.h include: Author: Gregory Nutt: update licenses to Apache 2.0 2021-02-04 03:33:58 -08:00
dmalloc.h mm: Add dmalloc wrapper layer and enable dmalloc module. 2021-07-10 05:04:56 -07:00
dsp.h libdsp: fix typos 2021-04-01 01:24:12 -05:00
dspb16.h libdsp/fixed16: add openloop handler 2021-04-01 14:54:33 -03:00
elf.h arch: Select 64bit elf base on the architecture characteristic 2020-05-31 21:38:32 -07:00
elf32.h include: Author: Gregory Nutt: update licenses to Apache 2.0 2021-02-04 03:33:58 -08:00
elf64.h Add missing Elf_Addr typedef 2020-04-30 08:46:21 -06:00
endian.h endian.h: add prefix for __LITTLE/__BIG_ENDIAN, __BYTE_ODRER 2021-08-11 17:58:17 +08:00
errno.h Completes the Implementation of the TLS-based errno 2020-05-07 23:11:34 +01:00
execinfo.h sched/backtrace: add sched_backtrace support 2021-08-18 19:36:38 +08:00
fcntl.h fs: Change off_t and related types to int64_t if long long is supported 2021-08-04 14:06:26 +08:00
fixedmath.h include: Author: Gregory Nutt: update licenses to Apache 2.0 2021-02-04 03:33:58 -08:00
fnmatch.h libc: Rename match to fnmatch 2021-08-02 12:02:39 +08:00
ftw.h fs: Change off_t and related types to int64_t if long long is supported 2021-08-04 14:06:26 +08:00
getopt.h Implement getopt_long() and getopt_long_only() 2021-04-01 23:06:23 -05:00
glob.h libc/misc: add lib_glob. 2021-08-26 16:57:07 +08:00
grp.h libs/libc: License Clearance 2021-03-02 03:44:06 -08:00
hex2bin.h Rename LIB_ to LIBC_ for all libc Kconfig 2021-08-09 21:03:17 +08:00
inttypes.h fs: Change off_t and related types to int64_t if long long is supported 2021-08-04 14:06:26 +08:00
iso646.h include: Add iso646.h for alternative spellings 2021-03-04 18:32:12 -08:00
langinfo.h libc: Add the empty nl_langinfo implementation 2021-08-02 09:49:11 +08:00
libgen.h include: Author: Gregory Nutt: update licenses to Apache 2.0 2021-02-04 03:33:58 -08:00
libintl.h libc: Implement gettext function 2021-08-04 14:02:16 +08:00
limits.h libc: Implement ttyname and ttyname_r 2021-07-09 18:23:34 -03:00
locale.h libc: Reorder LC_XXX as Linux 2021-08-02 09:49:05 +08:00
lzf.h sourcefiles: Fix relative path in file header 2021-03-09 23:18:28 +08:00
malloc.h mm: Support malloc_size function 2021-07-04 18:53:44 -03:00
mqueue.h include: Author: Gregory Nutt: update licenses to Apache 2.0 2021-02-04 03:33:58 -08:00
netdb.h netdb.h: Change all tab to space 2021-03-26 18:04:59 +01:00
nl_types.h libc: Support message catalog function 2021-08-02 19:47:20 +08:00
nxflat.h include: Author: Gregory Nutt: update licenses to Apache 2.0 2021-02-04 03:33:58 -08:00
poll.h sched: Add include/sys/poll.h 2021-01-06 14:23:50 +08:00
pthread.h sched: Don't include nuttx/sched.h inside sched.h 2021-06-13 00:25:26 -07:00
pty.h libc: Implement openpty function 2021-05-17 19:58:06 +08:00
pwd.h libc/pwd: Add NSS_BUFLEN_PASSWD macro 2021-05-17 19:58:28 +08:00
queue.h include: Author: Gregory Nutt: update licenses to Apache 2.0 2021-02-04 03:33:58 -08:00
resolv.h libc: Add b64_ntop and b64_pton implementation 2020-12-29 11:22:13 +08:00
sched.h sched/backtrace: add sched_backtrace support 2021-08-18 19:36:38 +08:00
semaphore.h sched: Don't include nuttx/sched.h inside sched.h 2021-06-13 00:25:26 -07:00
signal.h signal: Fix docs and comments related to SIGWORK and its config 2021-06-30 21:22:49 -05:00
spawn.h Rename LIB_ to LIBC_ for all libc Kconfig 2021-08-09 21:03:17 +08:00
stdbool.h include: Author: Gregory Nutt: update licenses to Apache 2.0 2021-02-04 03:33:58 -08:00
stddef.h include: Author: Gregory Nutt: update licenses to Apache 2.0 2021-02-04 03:33:58 -08:00
stdint.h stdint.h: Use conversion macros for the definition of MIN and MAX constants 2021-02-18 18:35:35 -08:00
stdio.h lib_vsprintf: Add %pV format support 2021-08-27 11:08:48 +08:00
stdlib.h fs: Change off_t and related types to int64_t if long long is supported 2021-08-04 14:06:26 +08:00
stdnoreturn.h include: Author: Gregory Nutt: update licenses to Apache 2.0 2021-02-04 03:33:58 -08:00
string.h libc/string: fix lib_strchrnul warning. 2021-08-25 15:08:37 +08:00
strings.h libc: Implement local_t related functions 2021-08-02 09:48:47 +08:00
syscall.h include: Author: Gregory Nutt: update licenses to Apache 2.0 2021-02-04 03:33:58 -08:00
syslog.h include/debug.h/syslog.h: Fix small typos and repeated words 2021-03-22 06:06:44 -07:00
termios.h include/termios: left shift of 1 by 31 places cannot be represented in type 'int' 2021-05-15 09:20:55 -07:00
threads.h include: Author: Gregory Nutt: update licenses to Apache 2.0 2021-02-04 03:33:58 -08:00
time.h libc: Implement local_t related functions 2021-08-02 09:48:47 +08:00
unistd.h fs: Change off_t and related types to int64_t if long long is supported 2021-08-04 14:06:26 +08:00
utime.h libc: Implement utime on top of utimes 2021-07-10 19:32:48 +08:00
uuid.h libc: Add uuid implemenation 2020-07-21 21:48:18 -07:00
wchar.h libc: Implement local_t related functions 2021-08-02 09:48:47 +08:00
wctype.h libc: Implement local_t related functions 2021-08-02 09:48:47 +08:00