home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / dos / communic / pcmail / termcap / tputs.c < prev   
Encoding:
C/C++ Source or Header  |  1994-06-05  |  1.2 KB  |  101 lines

  1. /*++
  2.  
  3. /* NAME
  4.  
  5. /*    tputs 3
  6.  
  7. /* SUMMARY
  8.  
  9. /*    output string with padding
  10.  
  11. /* PROJECT
  12.  
  13. /*    ms-dos/unix compatibility
  14.  
  15. /* PACKAGE
  16.  
  17. /*    termcap
  18.  
  19. /* SYNOPSIS
  20.  
  21. /*    tputs(cp,affcnt,outc)
  22.  
  23. /*    char *p;
  24.  
  25. /*    int affcnt;
  26.  
  27. /*    int (*outc)();
  28.  
  29. /* DESCRIPTION
  30.  
  31. /*    tputs interprets leading padding information in the string
  32.  
  33. /*    pointed to by cp, and outputs through the function pointed
  34.  
  35. /*    to by outc.
  36.  
  37. /*
  38.  
  39. /*    In the MS-DOS implementation, padding information is not
  40.  
  41. /*    needed.
  42.  
  43. /* SEE ALSO
  44.  
  45. /*    termcap(3), Berkeley extensions to UNIX.
  46.  
  47. /* FILES
  48.  
  49. /*    ANSI.SYS, ibm pc console driver.
  50.  
  51. /* AUTHOR(S)
  52.  
  53. /*    W.Z. Venema
  54.  
  55. /*    Eindhoven University of Technology
  56.  
  57. /*    Department of Mathematics and Computer Science
  58.  
  59. /*    Den Dolech 2, P.O. Box 513, 5600 MB Eindhoven, The Netherlands
  60.  
  61. /* CREATION DATE
  62.  
  63. /*    Wed Jan  1 19:01:13 GMT+1:00 1986
  64.  
  65. /* LAST MODIFICATION
  66.  
  67. /*    90/01/22 13:57:21
  68.  
  69. /* VERSION/RELEASE
  70.  
  71. /*    2.1
  72.  
  73. /*--*/
  74.  
  75.  
  76.  
  77. #include "termcap.h"
  78.  
  79.  
  80.  
  81. /* version does not check for padding */
  82.  
  83.  
  84.  
  85. tputs(cp, affcnt, outc)
  86.  
  87. register char *cp;
  88.  
  89. int     affcnt;
  90.  
  91. register int (*outc) ();
  92.  
  93. {
  94.  
  95.     while (*cp)
  96.  
  97.     (*outc) (*cp++);
  98.  
  99. }
  100.  
  101.