X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=fips.h;h=20653ff68b013e8363223f92135724f03491d379;hb=6dcb864fcfa77c4bf4eb7e1c04f00e53f9fee446;hp=306ea1bf1405efa51efa745bf78361d6cfdcdfcd;hpb=5569357a9fc7189c2bae43773f44ba576583ec2b;p=fips diff --git a/fips.h b/fips.h index 306ea1b..20653ff 100644 --- a/fips.h +++ b/fips.h @@ -39,4 +39,6 @@ #define STRNCMP_LITERAL(var, literal) \ strncmp ((var), (literal), sizeof (literal) - 1) +#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof(arr[0])) + #endif