From: Kurt Zeilenga Date: Wed, 7 Apr 2004 00:41:57 +0000 (+0000) Subject: Add STRLENOF macro X-Git-Tag: OPENLDAP_REL_ENG_2_2_BP~114 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=44820d617a27ad43682177e54b1da6793a0a2101;p=openldap Add STRLENOF macro --- diff --git a/include/ac/string.h b/include/ac/string.h index e19811ce41..791bb009c9 100644 --- a/include/ac/string.h +++ b/include/ac/string.h @@ -89,4 +89,6 @@ int (strncasecmp)(); else AC_MEMCPY( (d), (s), (n) ); \ } while(0) +#define STRLENOF(s) (sizeof(s)-1) + #endif /* _AC_STRING_H */