add strneq definition
authorSam Leffler <sam@ucbvax.Berkeley.EDU>
Mon, 13 Aug 1984 06:09:44 +0000 (22:09 -0800)
committerSam Leffler <sam@ucbvax.Berkeley.EDU>
Mon, 13 Aug 1984 06:09:44 +0000 (22:09 -0800)
SCCS-vsn: old/dbx/defs.h 1.3

usr/src/old/dbx/defs.h

index 6858706..8c78302 100644 (file)
@@ -1,4 +1,4 @@
-/*     defs.h  1.2     84/06/23        */
+/*     defs.h  1.3     84/08/12        */
 
 /*
  * Public definitions, common to all.
 
 /*
  * Public definitions, common to all.
@@ -51,6 +51,7 @@ typedef char *String;
 
 #define strdup(s)       strcpy(malloc((unsigned) strlen(s) + 1), s)
 #define streq(s1, s2)   (strcmp(s1, s2) == 0)
 
 #define strdup(s)       strcpy(malloc((unsigned) strlen(s) + 1), s)
 #define streq(s1, s2)   (strcmp(s1, s2) == 0)
+#define strneq(s1, s2, n)   (strncmp(s1, s2, n) == 0)
 
 typedef FILE *File;
 typedef int Fileid;
 
 typedef FILE *File;
 typedef int Fileid;