home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c082_144 / 1.ddi / CLIBSRC.ZIP / CPUTS.C < prev    next >
Encoding:
C/C++ Source or Header  |  1992-06-10  |  989 b   |  40 lines

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