This commit is contained in:
Ingy döt Net 2013-04-10 21:29:02 -07:00
parent 764da6cbbb
commit db842d013d
19005 changed files with 197040 additions and 7 deletions

View file

@ -0,0 +1,6 @@
: >string ( d -- addr n )
dup >r dabs <# #s r> sign #> ;
: inc-string ( addr -- )
dup count number? not abort" invalid number"
1 s>d d+ >string rot place ;

View file

@ -0,0 +1,3 @@
: inc-string ( addr n -- )
over count number? not abort" invalid number"
rot s>d d+ >string rot place ;

View file

@ -0,0 +1,3 @@
s" 123" pad place
pad inc-string
pad count type

View file

@ -0,0 +1,3 @@
s" 123" pad place
pad 1 inc-string
pad count type