]> git.sur5r.net Git - openldap/commitdiff
Add STRLENOF macro
authorKurt Zeilenga <kurt@openldap.org>
Wed, 7 Apr 2004 00:41:57 +0000 (00:41 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Wed, 7 Apr 2004 00:41:57 +0000 (00:41 +0000)
include/ac/string.h

index e19811ce41bf89c348d6f97d4a2e2ce6cf7cda99..791bb009c9ea090051c2d4371bc419a3d23de72a 100644 (file)
@@ -89,4 +89,6 @@ int (strncasecmp)();
                else AC_MEMCPY( (d), (s), (n) ); \
        } while(0)
 
+#define STRLENOF(s)    (sizeof(s)-1)
+
 #endif /* _AC_STRING_H */