home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1999 March B / SCO_CASTOR4RRT.iso / uccs / root.14 / udk / usr / include / string.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-08-19  |  2.3 KB  |  74 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 _STRING_H
  12. #define _STRING_H
  13. #ident    "@(#)sgs-head:i386/head/string.h    1.7.4.12"
  14.  
  15. #ifndef _SIZE_T
  16. #   define _SIZE_T
  17.     typedef unsigned int    size_t;
  18. #endif
  19.  
  20. #ifndef NULL
  21. #define NULL    0
  22. #endif
  23.  
  24. #ifdef __cplusplus
  25. extern "C" {
  26. #endif
  27.  
  28. extern void    *memchr(const void *, int, size_t);
  29. extern void    *memcpy(void *, const void *, size_t);
  30. extern void    *memccpy(void *, const void *, int, size_t);
  31. extern void    *memmove(void *, const void *, size_t);
  32. extern void    *memset(void *, int, size_t);
  33.  
  34. extern char    *strchr(const char *, int);
  35. extern char    *strcpy(char *, const char *);
  36. extern char    *strdup(const char *);
  37. extern char    *strncpy(char *, const char *, size_t);
  38. extern char    *strcat(char *, const char *);
  39. extern char    *strncat(char *, const char *, size_t);
  40. extern char    *strpbrk(const char *, const char *);
  41. extern char    *strrchr(const char *, int);
  42. extern char    *strstr(const char *, const char *);
  43. extern char    *strtok(char *, const char *);
  44. extern char    *strtok_r(char *, const char *, char **);
  45. extern char    *strerror(int);
  46. extern char    *strlist(char *, const char *, ...);
  47.  
  48. extern int    memcmp(const void *, const void *, size_t);
  49. extern int    strcmp(const char *, const char *);
  50. extern int    strcoll(const char *, const char *);
  51. extern int    strncmp(const char *, const char *, size_t);
  52.  
  53. extern size_t    strxfrm(char *, const char *, size_t);
  54. extern size_t    strcspn(const char *, const char *);
  55. extern size_t    strspn(const char *, const char *);
  56. extern size_t    strlen(const char *);
  57.  
  58. #ifndef __cplusplus
  59.     #pragma int_to_unsigned strcspn
  60.     #pragma int_to_unsigned strspn
  61.     #pragma int_to_unsigned strlen
  62. #endif
  63.  
  64. #if __STDC__ -0 == 0 && !defined(_XOPEN_SOURCE) \
  65.     && !defined(_POSIX_SOURCE) && !defined(_POSIX_C_SOURCE)
  66. extern int    ffs(int);
  67. #endif
  68.  
  69. #ifdef __cplusplus
  70. }
  71. #endif
  72.  
  73. #endif /*_STRING_H*/
  74.