Create a numbered stack of N elements.
Stack_Type stk_expand_n( String_Type stackstring, Integer_Type N )
This routine creates a stack of N elements where each element
is consecutively numbered from 1 to N.
The stackstring argument should contain the "#" character,
which will be replaced by the number 1, 2, 3, ..., N.
These numbers will be padded by leading "0" characters
to ensure that each string in the stack has the same length.
Note that only the first # character in stackstring will be
expanded.
chips> stk = stk_expand_n( "spec#.pi", 11 )
chips> stk_disp( stk )
------
Stack position: 0
Stack size: 11
Stack allocated: 11
Stack entries:
1 :spec01.pi:
2 :spec02.pi:
3 :spec03.pi:
4 :spec04.pi:
5 :spec05.pi:
6 :spec06.pi:
7 :spec07.pi:
8 :spec08.pi:
9 :spec09.pi:
10 :spec10.pi:
11 :spec11.pi:
------
- modules
-
stackio
- stackio
-
stk_append,
stk_build,
stk_change_current,
stk_change_num,
stk_close,
stk_count,
stk_current,
stk_delete_current,
stk_delete_num,
stk_disp,
stk_read_next,
stk_read_num,
stk_rewind,
stk_set_current
|