nuttx/libs/libc/stdio
Sunny 9856eae61f libc/libvsprintf: fix vsnprintf bug with "%e"
For "%e" conversion, the exponent always contains at least two digits.
That means if the value is zero, the exponent is 00, not 0.

Such as code:
  printf(buffer, sizeof(buffer), "%e", 1.232323232323);
  printf(buffer, sizeof(buffer), "%e", 12.32323232323);
  printf(buffer, sizeof(buffer), "%e", 123.2323232323);

Expected output:
  1.232323e+00
  1.232323e+01
  1.232323e+02

But real output:
  1.232323e+0
  1.232323e+1
  1.232323e+2

Signed-off-by: Sunny <zxcvbnm37425@gmail.com>
2023-07-09 01:50:41 +08:00
..
CMakeLists.txt build: add initial cmake build system 2023-07-08 13:50:48 +08:00
Kconfig stdio: Remove CONFIG_EOL_IS_XXX 2023-02-24 00:35:19 +08:00
lib_asprintf.c
lib_clearerr.c
lib_dprintf.c
lib_dtoa_data.c
lib_dtoa_engine.c nuttx: Use MIN/MAX definitions from "sys/param.h" 2023-02-01 23:47:44 +08:00
lib_dtoa_engine.h
lib_fclose.c libc/misc: add fdsan module 2023-05-17 10:24:42 +08:00
lib_feof.c
lib_ferror.c
lib_fflush.c
lib_fgetc.c
lib_fgetpos.c
lib_fgets.c
lib_fileno.c
lib_fopen.c libc/fdsan: add fdsan protection for all file pointers 2023-05-27 15:05:44 +08:00
lib_fprintf.c
lib_fputc.c
lib_fputs.c
lib_fread.c
lib_freopen.c
lib_fscanf.c
lib_fseek.c
lib_fseeko.c
lib_fsetpos.c
lib_ftell.c
lib_ftello.c
lib_fwrite.c
lib_getc.c
lib_getchar.c
lib_getdelim.c stdio: Remove CONFIG_EOL_IS_XXX 2023-02-24 00:35:19 +08:00
lib_gets_s.c libc/stdio: Make gets/gets_s work without CONFIG_FILE_STREAM 2023-02-24 10:39:48 +08:00
lib_gets.c libc/stdio: Make gets/gets_s work without CONFIG_FILE_STREAM 2023-02-24 10:39:48 +08:00
lib_libdgets.c libc/stdio: Make gets/gets_s work without CONFIG_FILE_STREAM 2023-02-24 10:39:48 +08:00
lib_libdtoa.c nuttx: Use MIN/MAX definitions from "sys/param.h" 2023-02-01 23:47:44 +08:00
lib_libfflush.c
lib_libfgets.c stdio: lib_fgets convert \r\n to \n 2023-02-24 10:39:48 +08:00
lib_libfilelock.c semantic/parser: fix compile warning found by sparse 2023-05-30 23:00:00 +08:00
lib_libflushall.c
lib_libfread.c
lib_libfwrite.c
lib_libgetstreams.c semantic/parser: fix compile warning found by sparse 2023-05-30 23:00:00 +08:00
lib_libsprintf.c
lib_libstream.c
lib_libvscanf.c
lib_libvsprintf.c libc/libvsprintf: fix vsnprintf bug with "%e" 2023-07-09 01:50:41 +08:00
lib_perror.c Indent the define statement by two spaces 2023-05-21 09:52:08 -03:00
lib_printf.c
lib_putc.c
lib_putchar.c
lib_puts.c
lib_rdflush.c
lib_remove.c libc/lib_remove: fix TOCTOU race condition 2023-06-29 18:15:06 +08:00
lib_renameat.c libc: Add a new argument(size_t fulllen) to lib_getfullpath 2023-05-08 09:57:01 +02:00
lib_rewind.c
lib_scanf.c
lib_setbuf.c
lib_setbuffer.c libc: Add setbuffer to stdio. 2023-05-01 11:24:41 +03:00
lib_setvbuf.c
lib_snprintf.c
lib_sprintf.c
lib_sscanf.c
lib_tempnam.c Fixes in asprintf usage. 2023-04-19 02:48:39 +08:00
lib_tmpfile.c
lib_tmpnam.c
lib_ultoa_invert.c
lib_ultoa_invert.h
lib_ungetc.c
lib_vasprintf.c asprintf: Fixed possible memory leak if print fails. 2023-03-28 14:46:07 -03:00
lib_vdprintf.c stdio: Implement simple buffered out stream for vdprintf 2023-03-01 13:08:59 +09:00
lib_vfprintf.c
lib_vfscanf.c
lib_vprintf.c
lib_vscanf.c
lib_vsnprintf.c
lib_vsprintf.c
lib_vsscanf.c
lib_wrflush.c
Make.defs libc: Add setbuffer to stdio. 2023-05-01 11:24:41 +03:00