home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume10 / pcmail2 / part01 / termcap / tputs.c < prev   
C/C++ Source or Header  |  1990-01-24  |  1KB  |  51 lines

  1. /*++
  2. /* NAME
  3. /*    tputs 3
  4. /* SUMMARY
  5. /*    output string with padding
  6. /* PROJECT
  7. /*    ms-dos/unix compatibility
  8. /* PACKAGE
  9. /*    termcap
  10. /* SYNOPSIS
  11. /*    tputs(cp,affcnt,outc)
  12. /*    char *p;
  13. /*    int affcnt;
  14. /*    int (*outc)();
  15. /* DESCRIPTION
  16. /*    tputs interprets leading padding information in the string
  17. /*    pointed to by cp, and outputs through the function pointed
  18. /*    to by outc.
  19. /*
  20. /*    In the MS-DOS implementation, padding information is not
  21. /*    needed.
  22. /* SEE ALSO
  23. /*    termcap(3), Berkeley extensions to UNIX.
  24. /* FILES
  25. /*    ANSI.SYS, ibm pc console driver.
  26. /* AUTHOR(S)
  27. /*    W.Z. Venema
  28. /*    Eindhoven University of Technology
  29. /*    Department of Mathematics and Computer Science
  30. /*    Den Dolech 2, P.O. Box 513, 5600 MB Eindhoven, The Netherlands
  31. /* CREATION DATE
  32. /*    Wed Jan  1 19:01:13 GMT+1:00 1986
  33. /* LAST MODIFICATION
  34. /*    90/01/22 13:57:21
  35. /* VERSION/RELEASE
  36. /*    2.1
  37. /*--*/
  38.  
  39. #include "termcap.h"
  40.  
  41. /* version does not check for padding */
  42.  
  43. tputs(cp, affcnt, outc)
  44. register char *cp;
  45. int     affcnt;
  46. register int (*outc) ();
  47. {
  48.     while (*cp)
  49.     (*outc) (*cp++);
  50. }
  51.