drzsmith
Newbie level 3
hi when using sprintf for a value which is less than the width specifier the extra spaces are paded with spaced (0x20)
for exsample
code
length = 8 (1234 space space space space), can null be used rather than a space?
thanks
for exsample
PHP:
code
num = 1234
length = sprintf(buf,%8d,num)
length = 8 (1234 space space space space), can null be used rather than a space?
thanks