add function prototypes and macros for string conversion function

add missing libc string.h include

fix missing errno.h include

add some more overflow treatment and make sure to set errno properly

(0) -1000 -300 -100 -30 -10 -4 +4 +10 tip

mercurial