home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / cpm / cug / softt-3.lbr / ITOC.DQC / ITOC.DOC
Encoding:
Text File  |  1984-07-05  |  896 b   |  44 lines

  1. .bp 1   
  2. .in 0   
  3. .he 'ITOC (2)'11/13/78'ITOC (2)'
  4. .fo ''-#-'' 
  5. .fi 
  6. .in 7   
  7. .ti -7  
  8. NAME
  9. .br 
  10. itoc - convert integer to character string  
  11. .sp 1   
  12. .ti -7  
  13. SYNOPSIS
  14. .br 
  15. .nf 
  16. length = itoc(int, str, size)   
  17.    518  
  18. integer int, size   
  19. character str(ARB)  
  20. integer length returned as the number of characters needed  
  21. .fi 
  22. .sp 1   
  23. .ti -7  
  24. DESCRIPTION 
  25. .br 
  26. Converts an integer 'int' to characters in array 'str', which   
  27. is at most 'size' characters long.  
  28. 'length' is returned as the number of characters the integer
  29. took, not including the EOS marker. 
  30. Characters are stored in ascii character arrays terminated with 
  31. an EOS marker.  
  32. .sp 
  33. Negative numbers are handled correctly. 
  34. .sp 1   
  35. .ti -7  
  36. SEE ALSO
  37. .br 
  38. ctoi, putdec, putint
  39. .sp 1   
  40. .ti -7  
  41. DIAGNOSTICS 
  42. .br 
  43. None
  44.