home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c065 / 1.ddi / CLIB1.ZIP / CPUTS.C < prev    next >
Encoding:
C/C++ Source or Header  |  1990-06-07  |  1.4 KB  |  41 lines

  1. /*------------------------------------------------------------------------
  2.  * filename - cputs.c
  3.  *
  4.  * function(s)
  5.  *        cputs - write a string to the console
  6.  *-----------------------------------------------------------------------*/
  7.  
  8. /*[]------------------------------------------------------------[]*/
  9. /*|                                                              |*/
  10. /*|     Turbo C Run Time Library - Version 3.0                   |*/
  11. /*|                                                              |*/
  12. /*|                                                              |*/
  13. /*|     Copyright (c) 1987,1988,1990 by Borland International    |*/
  14. /*|     All Rights Reserved.                                     |*/
  15. /*|                                                              |*/
  16. /*[]------------------------------------------------------------[]*/
  17.  
  18. #include <conio.h>
  19. #include <string.h>
  20. #include <_video.h>
  21.  
  22. /*----------------------------------------------------------------------*
  23.  
  24. Name        cputs - writes a string to the console
  25.  
  26. Usage        int cputs(const char *string)
  27.  
  28. Prototype in    conio.h
  29.  
  30. Description    writes the null-terminated string string to the console;
  31.         it does not append a newline character.
  32.  
  33. Return value    nothing
  34.  
  35. *-----------------------------------------------------------------------*/
  36.  
  37. int cputs(const char * s)
  38. {
  39.     return __cputn(s,strlen(s),0);
  40. }
  41.