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

  1. /*-----------------------------------------------------------------------*
  2.  * filename - putch.c
  3.  *
  4.  * function(s)
  5.  *        putch - puts character on 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 <_video.h>
  19.  
  20. /*---------------------------------------------------------------------*
  21.  
  22. Name            putch - puts character on console
  23.  
  24. Usage           int putch(int ch);
  25.  
  26. Prototype in    conio.h
  27.  
  28. Description     putch outputs the character ch to the console.
  29.  
  30. Return value    putch returns the character printed.
  31.  
  32. *---------------------------------------------------------------------*/
  33.  
  34. int putch(int c)
  35. {
  36.         return __cputn((char*)&c,1,0);
  37. }
  38.  
  39.