format bugs, etc.
Posted: Sat Dec 12, 2009 9:40 pm
## 1. `format' function returns a value different from `printf()'
## 2. `(rand 0)' returns not integer value.
---
kosh
Code: Select all
(format "%#05x" 10)
;-> ERR: problem in format string in function format : "%#05x"
(import "libc.so.6" "printf")
(printf "%#05x" 10)
;-> 0x00a
;=> 5
(format "%c" 0)
; => "" (empty string)
(printf "%c" 0)
;-> ^@ ("\000")
;=> 1
Code: Select all
(rand 0)
;=> true
kosh