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

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