home *** CD-ROM | disk | FTP | other *** search
- .bp 1
- .in 0
- .he 'ITOC (2)'11/13/78'ITOC (2)'
- .fo ''-#-''
- .fi
- .in 7
- .ti -7
- NAME
- .br
- itoc - convert integer to character string
- .sp 1
- .ti -7
- SYNOPSIS
- .br
- .nf
- length = itoc(int, str, size)
- 518
- integer int, size
- character str(ARB)
- integer length returned as the number of characters needed
- .fi
- .sp 1
- .ti -7
- DESCRIPTION
- .br
- Converts an integer 'int' to characters in array 'str', which
- is at most 'size' characters long.
- 'length' is returned as the number of characters the integer
- took, not including the EOS marker.
- Characters are stored in ascii character arrays terminated with
- an EOS marker.
- .sp
- Negative numbers are handled correctly.
- .sp 1
- .ti -7
- SEE ALSO
- .br
- ctoi, putdec, putint
- .sp 1
- .ti -7
- DIAGNOSTICS
- .br
- None