mupen64plus-win32-deps/gawk-3.1.6-1/share/awk/join.awk
Bobby Smiles 5b9ca0c278 Add gawk 3.1.6.
which is now needed to build mupen64plus-core.
2016-12-17 17:17:41 +01:00

16 lines
378 B
Awk

# join.awk --- join an array into a string
#
# Arnold Robbins, arnold@skeeve.com, Public Domain
# May 1993
function join(array, start, end, sep, result, i)
{
if (sep == "")
sep = " "
else if (sep == SUBSEP) # magic value
sep = ""
result = array[start]
for (i = start + 1; i <= end; i++)
result = result sep array[i]
return result
}