home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Datafile PD-CD 4
/
DATAFILE_PDCD4.iso
/
unix
/
unixlib36d
/
clib
/
h
/
string
< prev
next >
Wrap
Text File
|
1994-02-26
|
2KB
|
72 lines
/* string.h (c) Copyright 1990 H.Rogers */
#ifndef __STRING_H
#define __STRING_H
#ifndef __SYS_TYPES_H
#include <sys/types.h>
#endif
#ifndef __ERRNO_H
#include <errno.h> /* for strerror() */
#endif
#ifdef __cplusplus
extern "C" {
#endif
extern void *__memcpy(void *,const void *,size_t);
extern void *__memset(void *,int,size_t);
#define memcpy(s1,s2,n) __memcpy(s1,s2,n)
#define memmove(s1,s2,n) __memcpy(s1,s2,n)
#define memset(s,c,n) __memset(s,c,n)
extern void *memchr(const void *,int,size_t);
extern int memcmp(const void *,const void *,size_t);
extern void *(memcpy)(void *,const void *,size_t);
extern void *(memmove)(void *,const void *,size_t);
extern void *(memset)(void *,int,size_t);
#define bcmp(s1,s2,n) memcmp(s2,s1,n)
#define bcopy(s1,s2,n) memmove(s2,s1,n)
#define bzero(s,n) memset(s,0,n)
extern int (bcmp)(const void *,const void *,size_t);
extern void *(bcopy)(const void *,void *,size_t);
extern void *(bzero)(void *,size_t);
extern size_t strlen(const char *);
extern char *strcat(char *,const char *);
extern char *strncat(char *,const char *,size_t);
extern char *strchr(const char *,int);
extern char *strrchr(const char *,int);
extern int strcmp(const char *,const char *);
extern int strncmp(const char *,const char *,size_t);
extern char *strcpy(char *,const char *);
extern char *strncpy(char *,const char *,size_t);
extern size_t strspn(const char *,const char *);
extern size_t strcspn(const char *,const char *);
extern char *strpbrk(const char *,const char *);
extern char *strstr(const char *,const char *);
extern char *strtok(char *,const char *);
extern int stricmp(const char *,const char *);
extern int strnicmp(const char *,const char *,size_t);
extern char *strichr(const char *,int);
extern char *strrichr(const char *,int);
extern char *strdup(register const char *);
#define index(s,c) strchr(s,c)
#define rindex(s,c) strrchr(s,c)
extern char *(index)(const char *,int);
extern char *(rindex)(const char *,int);
#ifdef __cplusplus
}
#endif
#endif