diff options
-rw-r--r-- | make.h | 2 | ||||
-rw-r--r-- | misc.c | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -298,6 +298,8 @@ extern char *alloca (); # define strieq(a, b) (strcmp ((a), (b)) == 0) #endif +#define strneq(a, b, n) (strncmp((a), (b), (n)) == 0) + /* Add to VAR the hashing value of C, one character in a name. */ #define HASH(var, c) \ ((var += (c)), (var = ((var) << 7) + ((var) >> 20))) @@ -379,7 +379,7 @@ xrealloc (ptr, size) } -const char * +char * xstrdup (ptr) const char *ptr; { |