home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1999 March B / SCO_CASTOR4RRT.iso / uccs / root.14 / udk / usr / include / widec.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-08-19  |  2.3 KB  |  71 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. #ifndef _WIDEC_H
  12. #define _WIDEC_H
  13. #ident    "@(#)sgs-head:common/head/widec.h    1.6"
  14.  
  15. #include <wchar.h>
  16. #include <wctype.h>
  17. #include <stdio.h>
  18.  
  19. #ifdef __cplusplus
  20. extern "C" {
  21. #endif
  22.  
  23. extern int    putws(const wchar_t *);
  24. extern wchar_t    *getws(wchar_t *);
  25. extern wchar_t    *wscpy(wchar_t *, const wchar_t *);
  26. extern wchar_t    *wsncpy(wchar_t *, const wchar_t *, int);
  27. extern wchar_t    *wscat(wchar_t *, const wchar_t *);
  28. extern wchar_t    *wsncat(wchar_t *, const wchar_t *, int);
  29. extern wchar_t    *wschr(wchar_t *, int);
  30. extern wchar_t    *wsrchr(wchar_t *, int);
  31. extern wchar_t    *wspbrk(const wchar_t *, const wchar_t *);
  32. extern wchar_t    *wstok(wchar_t *, const wchar_t *);
  33. extern int    wscmp(const wchar_t *, const wchar_t *);
  34. extern int    wsncmp(const wchar_t *, const wchar_t *, int);
  35. extern int    wslen(const wchar_t *);
  36. extern int    wsspn(const wchar_t *, const wchar_t *);
  37. extern int    wscspn(const wchar_t *, const wchar_t *);
  38. extern char    *wstostr(char *, const wchar_t *);
  39. extern wchar_t    *strtows(wchar_t *, const char *);
  40.  
  41. #ifdef __cplusplus
  42. }
  43. #endif
  44.  
  45. #if !#lint(on)
  46.  
  47. extern wchar_t    *__wstok_ptr_;    /* ugh */
  48.  
  49. #define wscpy(ws1, ws2)        wcscpy(ws1, ws2)
  50. #define wsncpy(ws1, ws2, n)    wcsncpy(ws1, ws2, n)
  51. #define wscat(ws1, ws2)        wcscat(ws1, ws2)
  52. #define wsncat(ws1, ws2, n)    wcsncat(ws1, ws2, n)
  53. #define wschr(ws, wc)        wcschr(ws, wc)
  54. #define    wsrchr(ws, wc)        wcsrchr(ws, wc)
  55. #define wspbrk(ws1, ws2)    wcspbrk(ws1, ws2)
  56. #define wstok(ws1, ws2)        _wcstok(ws1, ws2, &__wstok_ptr_)
  57. #define wscmp(ws1, ws2)        wcscmp(ws1, ws2)
  58. #define wsncmp(ws1,ws2,n)    wcsncmp(ws1, ws2, n)
  59. #define wslen(ws)         wcslen(ws)
  60. #define wsspn(ws1, ws2)        wcsspn(ws1, ws2)
  61. #define wscspn(ws1, ws2)    wcscspn(ws1, ws2)
  62.  
  63. #undef getwchar
  64. #define getwchar()        getwc(stdin)
  65. #undef putwchar
  66. #define putwchar(wc)        putwc(wc, stdout)
  67.  
  68. #endif /*!#lint(on)*/
  69.  
  70. #endif /*_WIDEC_H*/
  71.