2
0

printf.stdout 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. percent: %
  2. string: String
  3. char: c
  4. char: þ
  5. int: -16
  6. uint: 32
  7. hex: beef
  8. HEX: C0FFEE
  9. string: end
  10. %n returned 51, total len of write: 94
  11. Padding madness:
  12. 001 +2
  13. c
  14. 0x00000ff
  15. 001
  16. 0 0x1
  17. 1
  18. (00123) ( 123)
  19. (-0123) ( -123)
  20. ( )
  21. 0xabcdef
  22. (nil)
  23. Positional madness:
  24. 4 3 2
  25. 00002
  26. |Fiz |Buz | Fiz| Tot|
  27. int: 5 double: 0.100000 0.200000 0.300000 0.400000
  28. -1717986918 0.100000
  29. -1717986918 0.200000
  30. Float madness:
  31. 1.234568e+02
  32. 1.000000E-05
  33. 123.456789
  34. 0.000010
  35. -1.234568e+02
  36. -00000001.234568e+02
  37. %.5g: -123.46
  38. %.5f: -123.45679
  39. %.5e: -1.23457e+02
  40. %.*g: -1.2e+02
  41. %.*f: -123.46
  42. %.*e: -1.23e+02
  43. %.*2$g: -123.46
  44. %.*2$f: -123.45679
  45. %.*2$e: -1.23457e+02
  46. 100000
  47. 1e+06
  48. 1.000000e+06
  49. 0.0001
  50. 1E-05
  51. 1.000000E-05
  52. Non-finite float madness:
  53. %e: inf -inf nan -nan
  54. %E: INF -INF NAN -NAN
  55. %f: inf -inf nan -nan
  56. %F: INF -INF NAN -NAN
  57. %g: inf -inf nan -nan
  58. %G: INF -INF NAN -NAN
  59. Things that have been buggy
  60. +05
  61. Testing asprintf...
  62. printed: test string, value: 11
  63. printed: test string 2, value: 13
  64. printed: test string 2, value: 13