Annotation of mstools/h/string.h, revision 1.1.1.2

1.1       root        1: /***
                      2: *string.h - declarations for string manipulation functions
                      3: *
1.1.1.2 ! root        4: *      Copyright (c) 1985-1992, Microsoft Corporation. All rights reserved.
1.1       root        5: *
                      6: *Purpose:
                      7: *      This file contains the function declarations for the string
                      8: *      manipulation functions.
                      9: *      [ANSI/System V]
                     10: *
                     11: ****/
                     12: 
                     13: #ifndef _INC_STRING
                     14: 
                     15: #ifdef __cplusplus
                     16: extern "C" {
                     17: #endif
                     18: 
                     19: 
1.1.1.2 ! root       20: #ifndef MIPS
1.1       root       21: #if (_MSC_VER <= 600)
                     22: #define __cdecl _cdecl
                     23: #endif
1.1.1.2 ! root       24: #endif
1.1       root       25: 
                     26: #ifndef _SIZE_T_DEFINED
                     27: typedef unsigned int size_t;
                     28: #define _SIZE_T_DEFINED
                     29: #endif
                     30: 
                     31: 
                     32: #ifndef _WCHAR_T_DEFINED
                     33: typedef unsigned short wchar_t;
                     34: #define _WCHAR_T_DEFINED
                     35: #endif
                     36: 
                     37: 
                     38: /* define NULL pointer value */
                     39: 
                     40: #ifndef NULL
                     41: #ifdef __cplusplus
                     42: #define NULL   0
                     43: #else
                     44: #define NULL   ((void *)0)
                     45: #endif
                     46: #endif
                     47: 
                     48: 
                     49: /* function prototypes */
                     50: 
                     51: void * _memccpy(void *, const void *, int, unsigned int);
                     52: void * memchr(const void *, int, size_t);
                     53: int memcmp(const void *, const void *, size_t);
                     54: int _memicmp(const void *, const void *, unsigned int);
                     55: void * memcpy(void *, const void *, size_t);
                     56: void * memmove(void *, const void *, size_t);
                     57: void * memset(void *, int, size_t);
                     58: char * strcat(char *, const char *);
                     59: char * strchr(const char *, int);
                     60: int strcmp(const char *, const char *);
                     61: int _strcmpi(const char *, const char *);
                     62: int _stricmp(const char *, const char *);
1.1.1.2 ! root       63: int strcoll(const char *, const char *);
        !            64: #ifdef _MAC_
        !            65: char * _c2pstr(const char *);
        !            66: char * _p2cstr(const char *);
        !            67: #endif
        !            68: int _stricoll(const char *, const char *);
1.1       root       69: char * strcpy(char *, const char *);
                     70: size_t strcspn(const char *, const char *);
                     71: char * _strdup(const char *);
                     72: char * _strerror(const char *);
                     73: char * strerror(int);
                     74: size_t strlen(const char *);
                     75: char * _strlwr(char *);
                     76: char * strncat(char *, const char *, size_t);
                     77: int strncmp(const char *, const char *, size_t);
                     78: int _strnicmp(const char *, const char *, size_t);
                     79: char * strncpy(char *, const char *, size_t);
                     80: char * _strnset(char *, int, size_t);
                     81: char * strpbrk(const char *, const char *);
                     82: char * strrchr(const char *, int);
                     83: char * _strrev(char *);
                     84: char * _strset(char *, int);
                     85: size_t strspn(const char *, const char *);
                     86: char * strstr(const char *, const char *);
                     87: char * strtok(char *, const char *);
                     88: char * _strupr(char *);
                     89: size_t strxfrm (char *, const char *, size_t);
                     90: 
1.1.1.2 ! root       91: #ifndef _WSTRING_DEFINED
        !            92: wchar_t * wcscat(wchar_t *, const wchar_t *);
        !            93: wchar_t * wcschr(const wchar_t *, wchar_t);
        !            94: int wcscmp(const wchar_t *, const wchar_t *);
        !            95: wchar_t * wcscpy(wchar_t *, const wchar_t *);
        !            96: size_t wcscspn(const wchar_t *, const wchar_t *);
        !            97: size_t wcslen(const wchar_t *);
        !            98: wchar_t * wcsncat(wchar_t *, const wchar_t *, size_t);
        !            99: int wcsncmp(const wchar_t *, const wchar_t *, size_t);
        !           100: wchar_t * wcsncpy(wchar_t *, const wchar_t *, size_t);
        !           101: wchar_t * wcspbrk(const wchar_t *, const wchar_t *);
        !           102: wchar_t * wcsrchr(const wchar_t *, wchar_t);
        !           103: size_t wcsspn(const wchar_t *, const wchar_t *);
        !           104: wchar_t * wcsstr(const wchar_t *, const wchar_t *);
        !           105: 
        !           106: wchar_t * _wcsdup(const wchar_t *);
        !           107: int _wcsicmp(const wchar_t *, const wchar_t *);
        !           108: int _wcsnicmp(const wchar_t *, const wchar_t *, size_t);
        !           109: wchar_t * _wcsnset(wchar_t *, wchar_t, size_t);
        !           110: wchar_t * _wcsrev(wchar_t *);
        !           111: wchar_t * _wcsset(wchar_t *, wchar_t);
        !           112: 
        !           113: wchar_t * _wcslwr(wchar_t *);
        !           114: wchar_t * _wcsupr(wchar_t *);
        !           115: size_t wcsxfrm(wchar_t *, const wchar_t *, size_t);
        !           116: int wcscoll(const wchar_t *, const wchar_t *);
        !           117: int _wcsicoll(const wchar_t *, const wchar_t *);
        !           118: 
        !           119: // old names
        !           120: #define wcswcs wcsstr
        !           121: 
        !           122: #define _WSTRING_DEFINED
        !           123: #endif
        !           124: 
1.1       root      125: #if !__STDC__
                    126: /* Non-ANSI names for compatibility */
                    127: #define memccpy  _memccpy
                    128: #define memicmp  _memicmp
                    129: #define strcmpi  _strcmpi
                    130: #define stricmp  _stricmp
                    131: #define strdup  _strdup
                    132: #define strlwr  _strlwr
                    133: #define strnicmp _strnicmp
                    134: #define strnset  _strnset
                    135: #define strrev  _strrev
                    136: #define strset  _strset
                    137: #define strupr  _strupr
1.1.1.2 ! root      138: #define stricoll _stricoll
        !           139: 
        !           140: #ifdef _MAC_
        !           141: #define c2pstr _c2pstr
        !           142: #define p2cstr _p2cstr
        !           143: #endif
        !           144: 
        !           145: #define wcsdup _wcsdup
        !           146: #define wcsicmp        _wcsicmp
        !           147: #define wcsnicmp _wcsnicmp
        !           148: #define wcsnset        _wcsnset
        !           149: #define wcsrev _wcsrev
        !           150: #define wcsset _wcsset
        !           151: #define wcslwr _wcslwr
        !           152: #define wcsupr _wcsupr
        !           153: #define wcsicoll _wcsicoll
        !           154: #endif /* !__STDC__ */
1.1       root      155: 
                    156: #ifdef __cplusplus
                    157: }
                    158: #endif
                    159: 
                    160: #define _INC_STRING
                    161: #endif /* _INC_STRING */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.