Update of /cvsroot/blob/blob/include/blob
In directory usw-pr-cvs1:/tmp/cvs-serv14312/include/blob
Modified Files:
util.h
Log Message:
Remove strncmp().
This will force you to think before you compare two strings, but I consider
that a Good Thing [tm].
All other changes are trivial.
Index: util.h
===================================================================
RCS file: /cvsroot/blob/blob/include/blob/util.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- util.h 2001/10/15 21:47:47 1.4
+++ util.h 2001/12/19 19:03:45 1.5
@@ -43,13 +43,6 @@
int strncmp(const char *s1, const char *s2, int maxlen);
-static inline int strcmp(const char *s1, const char *s2)
-{
- /* 1024 should be long enough for strings in blob */
- return strncmp(s1, s2, 1024);
-}
-
-
int strlen(const char *s);
char *strcpy(char *dest, const char *src);
|