home *** CD-ROM | disk | FTP | other *** search
- .he 'VTOC'03/23/80'VTOC'
- NAME
- .sp
- vtoc - convert PL/I varying string to EOS-terminated string
- .sp 2
- SYNOPSIS
- .sp
- .nf
- integer function vtoc (var, str, len)
- integer var (ARB), len
- character str (ARB)
- .sp 2
- .fi
- DESCRIPTION
- .sp
- 'Vtoc' is used to convert a PL/I character-varying string into a
- standard Subsystem EOS-terminated string.
- The first argument is the character-varying string to be converted;
- the second is a string to receive the result;
- the third is the maximum length of the result string.
- The function return is the number of characters in the result string
- after the conversion.
- .sp 2
- IMPLEMENTATION
- .sp
- 'Vtoc' uses the standard Subsystem macro 'fpchar' to pull characters
- from the PL/I string one at a time, and place them in the result
- string.
- Conversion stops when the result string fills or when all the
- characters in the PL/I string have been moved.
- .sp 2
- ARGUMENTS MODIFIED
- .sp
- str
- .sp 2
- SEE ALSO
- .sp
- other conversion routines ('cto?*' and '?*toc') (2)