Last change
on this file since 1153 was 1046, checked in by alloc, 8 years ago |
Daodan: Added Windows MinGW and build batch file
|
File size:
378 bytes
|
Rev | Line | |
---|
[1046] | 1 | # join.awk --- join an array into a string
|
---|
| 2 | #
|
---|
| 3 | # Arnold Robbins, arnold@skeeve.com, Public Domain
|
---|
| 4 | # May 1993
|
---|
| 5 |
|
---|
| 6 | function join(array, start, end, sep, result, i)
|
---|
| 7 | {
|
---|
| 8 | if (sep == "")
|
---|
| 9 | sep = " "
|
---|
| 10 | else if (sep == SUBSEP) # magic value
|
---|
| 11 | sep = ""
|
---|
| 12 | result = array[start]
|
---|
| 13 | for (i = start + 1; i <= end; i++)
|
---|
| 14 | result = result sep array[i]
|
---|
| 15 | return result
|
---|
| 16 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.