/* Copyright 1989, 1990, 1992 Digital Equipment Corporation All rights reserved. This software is furnished under a license and may be used and copied only in accordance with the terms of such license and with the inclusion of the above copyright notice. This software and any copies shall not be provided to any other person. No title to or ownership of the software is hereby transferred. The information in this software is subject to change without notice. DIGITAL assumes no responsibility for the use, functionality or reliability of its software on equipment which is not supplied by DIGITAL. string.h */ #ifndef __STRING_H #define __STRING_H #ifndef __DEFINED_SIZE_T #define __DEFINED_SIZE_T typedef unsigned int size_t; #endif /* Macro Defintions: */ #ifndef __DEFINED_NULL_MACRO #define __DEFINED_NULL_MACRO #define NULL ((void *) 0) #endif #ifndef __STDC__ #ifndef STRINGS_MATCH #define STRINGS_MATCH (0) #endif #define memcpy C$MCPY #define memmove C$MMOV #define strcpy C$SCPY #define strncpy C$SNCP #define strcat C$SCAT #define strncat C$SNCA #define memcmp C$MCMP #define strcmp C$SCMP #define strcoll C$SCOL #define strncmp C$SNCM #define strxfrm C$SXFR #define memchr C$MCHR #define strchr C$SCHR #define strcspn C$SCSP #define strpbrk C$SPBK #define strrchr C$SRCH #define strspn C$SSPN #define strstr C$SSTR #define strtok C$STOK #define memset C$MSET #define strerror C$SERR #define strlen C$SLEN #endif /* Linkage Definitions: */ #pragma linkage c memcpy , memmove, strcpy, strncpy, strcat #pragma linkage c strncat , memcmp , strcmp, strcoll, strncmp #pragma linkage c strxfrm , memchr , strchr, strcspn, strpbrk #pragma linkage c strrchr , strspn , strstr, strtok , memset #pragma linkage c strerror, strlen /* Copying Functions: */ void *memcpy ( void * __s1, const void * __s2, size_t __n); void *memmove ( void * __s1, const void * __s2, size_t __n); char *strcpy ( char * __s1, const char * __s2); char *strncpy ( char * __s1, const char * __s2, size_t __n); /* Concatenation Functions: */ char *strcat ( char * __s1, const char * __s2); char *strncat ( char * __s1, const char * __s2, size_t __n); /* Comparison Functions: */ int memcmp (const void * __s1, const void * __s2, size_t __n); int strcmp (const char * __s1, const char * __s2); int strcoll (const char * __s1, const char * __s2); int strncmp (const char * __s1, const char * __s2, size_t __n); size_t strxfrm ( char * __s1, const char * __s2, size_t __n); /* Search Functions: */ void *memchr (const void * __s, int __c, size_t __n); char *strchr (const char * __s, int __c); size_t strcspn (const char * __s1, const char * __s2); char *strpbrk (const char * __s1, const char * __s2); char *strrchr (const char * __s, int __c); size_t strspn (const char * __s1, const char * __s2); char *strstr (const char * __s1, const char * __s2); char *strtok ( char * __s1, const char * __s2); /* Miscellaneous Functions: */ void *memset ( void * __s , int __c, size_t __n); char *strerror (int __errnum); size_t strlen (const char * __s); #endif