X-Git-Url: https://git.cworth.org/git?p=fips;a=blobdiff_plain;f=fips.h;h=20653ff68b013e8363223f92135724f03491d379;hp=306ea1bf1405efa51efa745bf78361d6cfdcdfcd;hb=79edc7574c353a7ae8d2455ecc3a94aa956b3c8e;hpb=5569357a9fc7189c2bae43773f44ba576583ec2b 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