home *** CD-ROM | disk | FTP | other *** search
/ Oakland CPM Archive / oakcpm.iso / cpm / cug / softt-4.lbr / PUTDEC.DOC < prev    next >
Encoding:
Text File  |  1984-07-05  |  640 b   |  40 lines

  1. .bp 1
  2. .in 0
  3. .he 'PUTDEC (2)'11/13/78'PUTDEC (2)'
  4. .fo ''-#-''
  5. .fi
  6. .in 7
  7. .ti -7
  8. NAME
  9. .br
  10. putdec - write integer n in field width >=w
  11. .sp 1
  12. .ti -7
  13. SYNOPSIS
  14. .br
  15. .nf
  16. call putdec(n, w)
  17.  
  18. integer n, w
  19. .fi
  20. .sp 1
  21. .ti -7
  22. DESCRIPTION
  23. .br
  24. This routine writes onto the standard output the number 'n'
  25. as a string of at
  26. least 'w' characters, including a sign if 'n' is negative.
  27. If fewer than 'w' characters are needed, blanks are inserted to
  28. the left to make up the count; if more than 'w' are needed, more
  29. are provided.
  30. .sp 1
  31. .ti -7
  32. SEE ALSO
  33. .br
  34. itoc, putint
  35. .sp 1
  36. .ti -7
  37. DIAGNOSTICS
  38. .br
  39. None
  40.