Digital的Unix操作系统VAX 4.2源码
源代码在线查看: strings.h
/* strings.h - define standard string functions */ /* @(#)$Id: strings.h,v 1.2 90/11/25 18:58:01 sharpe Exp $ */ #ifndef _STRINGS /* once-only... */ #define _STRINGS #ifdef SYS5 #define index strchr #define rindex strrchr #endif SYS5 char *index (); char *mktemp (); char *rindex (); #ifndef SPRINTFTYPE char *sprintf (); /* I guess this is the new standard */ #else SPRINTFTYPE sprintf (); #endif char *strcat (); int strcmp (); char *strcpy (); int strlen (); char *strncat (); int strncmp (); char *strncpy (); char *getenv (); char *calloc (), *malloc (), *realloc (); #ifdef SYS5 #include #define bcmp(b1,b2,length) memcmp(b1, b2, length) #define bcopy(b1,b2,length) (void) memcpy (b2, b1, length) #define bcpy(b1,b2,length) memcmp (b1, b2, length) #define bzero(b,length) (void) memset (b, 0, length) #endif SYS5 #endif not _STRINGS