home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1999 March B / SCO_CASTOR4RRT.iso / uccs / root.14 / udk / usr / include / unctrl.h < prev    next >
C/C++ Source or Header  |  1998-08-19  |  1KB  |  56 lines

  1. /*
  2.  * Copyright (c) 1998 The Santa Cruz Operation, Inc.. All Rights Reserved. 
  3.  *                                                                         
  4.  *        THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF THE               
  5.  *                   SANTA CRUZ OPERATION INC.                             
  6.  *                                                                         
  7.  *   The copyright notice above does not evidence any actual or intended   
  8.  *   publication of such source code.                                      
  9.  */
  10.  
  11. /*        copyright    "%c%"     */
  12.  
  13. /*
  14.  *      Copyright (c) 1982, 1986, 1988
  15.  *      The Regents of the University of California
  16.  *      All Rights Reserved.
  17.  *      Portions of this document are derived from
  18.  *      software developed by the University of
  19.  *      California, Berkeley, and its contributors.
  20.  */
  21.  
  22. #ifdef IDENT
  23. #ident    "@(#)curses:common/lib/xlibcurses/screen/unctrl.h    1.3.4.2"
  24. #endif /* IDENT */
  25.  
  26. /*
  27.  * unctrl.h
  28.  *
  29.  */
  30.  
  31. #ifndef _UNCTRL_H
  32. #define    _UNCTRL_H
  33.  
  34. #if (defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE_EXTENDED >= 1))
  35. #ifndef _CHTYPE_T
  36. #define _CHTYPE_T
  37. #ifdef  CHTYPE
  38.     typedef CHTYPE chtype;
  39. #else
  40.     typedef unsigned long chtype;
  41. #endif /* CHTYPE */
  42. #endif /* _CHTYPE_T */
  43.  
  44. char *unctrl(chtype);
  45. #endif
  46.  
  47. extern char    *_unctrl[];
  48.  
  49. #if    !defined(NOMACROS) && !defined(lint)
  50.  
  51. #define    unctrl(ch)    (_unctrl[(ch)&0377])
  52.  
  53. #endif    /* NOMACROS && lint */
  54.  
  55. #endif    /* _UNCTRL_H */
  56.