susu #4183(2007/11/18 03:49 GMT) [ OCaml ] Rating0/0=0.00
1 2 3 4 5 6 7
let center str width = let len = String.length str in if width>len then let res = String.make width ' ' in (String.blit str 0 res ((width-len)/2) len; res) else String.sub str ((len-width)/2) width ;;
Rating0/0=0.00-0+
[ reply ]
susu
#4183()
[
OCaml
]
Rating0/0=0.00
Rating0/0=0.00-0+
[ reply ]