home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 October
/
usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso
/
unix
/
volume11
/
id
/
part01
/
string.h
< prev
next >
Wrap
C/C++ Source or Header
|
1987-09-25
|
525b
|
28 lines
/* Copyright (c) 1986, Greg McGary */
/* @(#)string.h 1.1 86/10/09 */
#ifdef RINDEX
#define strchr index
#define strrchr rindex
#endif
extern char
*strcpy(),
*strncpy(),
*strcat(),
*strncat(),
*strchr(),
*strrchr(),
*strpbrk(),
*strtok();
extern long
strtol();
extern char *calloc();
#define strequ(s1, s2) (strcmp((s1), (s2)) == 0)
#define strnequ(s1, s2, n) (strncmp((s1), (s2), (n)) == 0)
#define strsav(s) (strcpy(calloc(1, strlen(s)+1), (s)))
#define strnsav(s, n) (strncpy(calloc(1, (n)+1), (s), (n)))