File:  [CSRG BSD Unix] / 43BSD / contrib / icon / man / cat2 / collate.2
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:12:55 2018 UTC (8 years, 1 month ago) by root
Branches: MAIN, BSD
CVS tags: HEAD, BSD43
BSD 4.3




COLLATE(2)            Icon Program Library             COLLATE(2)



NNNNAAAAMMMMEEEE
     collate - collate and decollate strings

DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
     These procedures collate (interleave) respective characters
     of two strings and decollate by selecting every other char-
     acter of a string.

SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
     ccccoooollllllllaaaatttteeee((((ssss1111,,,,ssss2222)))) produce a string consisting of interleaved
                    characters of ssss1111 and ssss2222.  For example,
                    ccccoooollllllllaaaatttteeee((((""""aaaabbbbcccc"""",,,,""""ddddeeeeffff"""")))) produces """"aaaaddddbbbbeeeeccccffff"""".

     ddddeeeeccccoooollllllllaaaatttteeee((((ssss,,,,iiii)))) produce a string consisting of every other
                    character of ssss. If iiii is odd, the odd-numbered
                    characters are selected, while if iiii is even,
                    the even-numbered characters are selected.

DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
     Run-time error 208 occurs if the arguments to ccccoooollllllllaaaatttteeee are
     not of the same size.

AAAAUUUUTTTTHHHHOOOORRRR
     Ralph E. Griswold































Version 5.9    The University of Arizona - 8/12/84              1




unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.