nuttx/libs/libc/stdio
Jiuzhu Dong dfb4b6e3d8 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

Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-09-12 21:14:46 +08:00
..
Kconfig libc: Remove the legacy printf support 2021-08-25 12:55:36 -07:00
lib_asprintf.c
lib_clearerr.c
lib_dprintf.c
lib_dtoa_data.c
lib_dtoa_engine.c Remove the unnecessary math.h inclusion 2021-04-12 22:58:23 -04:00
lib_dtoa_engine.h Remove the unnecessary math.h inclusion 2021-04-12 22:58:23 -04:00
lib_fclose.c
lib_feof.c
lib_ferror.c
lib_fflush.c
lib_fgetc.c
lib_fgetpos.c Fix various typos 2021-07-25 18:36:53 -07:00
lib_fgets.c
lib_fileno.c
lib_fopen.c
lib_fprintf.c
lib_fputc.c
lib_fputs.c
lib_fread.c
lib_freopen.c
lib_fscanf.c NuttX: Johannes Schock: update licenses to Apache 2021-04-01 12:13:12 -05:00
lib_fseek.c Fix various typos 2021-07-25 18:36:53 -07:00
lib_fseeko.c
lib_fsetpos.c Fix various typos 2021-07-25 18:36:53 -07:00
lib_ftell.c libc: update stream getoffset to handle write case 2021-04-07 00:59:36 -05:00
lib_ftello.c
lib_fwrite.c
lib_getc.c
lib_getchar.c
lib_getdelim.c
lib_gets_s.c
lib_gets.c
lib_libdtoa.c
lib_libfflush.c
lib_libfgets.c lib_fgets: don't check for printability, as it doesn't allow to work with extended ASCII 2021-04-07 08:29:46 -03:00
lib_libflushall.c
lib_libfread.c lib_fread: return the number of bytes actually read when error occurs. 2021-09-12 11:36:03 +08:00
lib_libfwrite.c
lib_libnoflush.c
lib_libsnoflush.c libs: Gregory Nutt: update licenses to Apache 2021-04-02 11:12:25 -05:00
lib_libsprintf.c
lib_libvscanf.c Remove the unnecessary math.h inclusion 2021-04-12 22:58:23 -04:00
lib_libvsprintf.c lib_vsprintf: Add %pV format support 2021-09-12 21:14:46 +08:00
lib_lowoutstream.c libs: Gregory Nutt: update licenses to Apache 2021-04-02 11:12:25 -05:00
lib_meminstream.c
lib_memoutstream.c
lib_memsistream.c
lib_memsostream.c
lib_nullinstream.c
lib_nulloutstream.c
lib_perror.c
lib_printf.c
lib_putc.c
lib_putchar.c
lib_puts.c
lib_rawinstream.c
lib_rawoutstream.c
lib_rawsistream.c
lib_rawsostream.c
lib_rdflush.c
lib_remove.c
lib_rewind.c
lib_scanf.c NuttX: Johannes Schock: update licenses to Apache 2021-04-01 12:13:12 -05:00
lib_setbuf.c
lib_setvbuf.c Don't include assert.h from public header file 2021-06-03 08:36:03 -07:00
lib_snprintf.c
lib_sprintf.c
lib_sscanf.c NuttX: Johannes Schock: update licenses to Apache 2021-04-01 12:13:12 -05:00
lib_stdinstream.c
lib_stdoutstream.c
lib_stdsistream.c
lib_stdsostream.c
lib_tempnam.c
lib_tmpfile.c
lib_tmpnam.c
lib_ultoa_invert.c libs: fix nxstyle errors 2021-04-02 11:12:25 -05:00
lib_ultoa_invert.h
lib_ungetc.c
lib_vasprintf.c
lib_vdprintf.c libs: fix nxstyle errors 2021-04-02 11:12:25 -05:00
lib_vfprintf.c
lib_vfscanf.c libs: libc: update licenses to Apache 2021-05-27 08:07:25 +09:00
lib_vprintf.c
lib_vscanf.c
lib_vsnprintf.c libs: Gregory Nutt: update licenses to Apache 2021-04-02 11:12:25 -05:00
lib_vsprintf.c
lib_vsscanf.c
lib_wrflush.c
lib_zeroinstream.c
Make.defs libc: Remove the legacy printf support 2021-08-25 12:55:36 -07:00