File:  [CSRG BSD Unix] / 43BSD / contrib / icon / man / man2 / 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

.so tmac.ilib
.TH COLLATE 2 "The University of Arizona \- 8/12/84
.SH NAME
collate \- collate and decollate strings
.SH DESCRIPTION
These procedures collate (interleave) respective characters of two
strings and decollate by selecting every other character of a string.
.SH SYNOPSIS
.IP \*Mcollate(s1,\*bs2)\fR 1.5i
produce a string consisting of
interleaved characters of \*Ms1\fR and \*Ms2\fR.
For example, \*Mcollate("abc",\*b"def")\fR produces \*M"adbecf"\fR.
.IP \*Mdecollate(s,\*bi)\fR 1.5i
produce a string consisting of
every other character of \*Ms\fR. If \*Mi\fR
is odd, the odd-numbered characters are selected, while if \*Mi\fR
is even, the even-numbered characters are selected.
.SH DIAGNOSTICS
Run-time error 208 occurs if the arguments to \*Mcollate\fR are not
of the same size.
.SH AUTHOR
Ralph E. Griswold

unix.superglobalmegacorp.com

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