#ifndef ARRAYSIZE #define ARRAYSIZE(_a) (sizeof((_a)) / sizeof((_a)[0])) #endifExample Use:
void exampleUse() { char a[10]; const int n = ARRAYSIZE(a); printf("n=%d\n"); }
#ifndef ARRAYSIZE #define ARRAYSIZE(_a) (sizeof((_a)) / sizeof((_a)[0])) #endifExample Use:
void exampleUse() { char a[10]; const int n = ARRAYSIZE(a); printf("n=%d\n"); }